-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: top level await in capacitor.config.ts
not working
#6836
Comments
i also try to do this changes: #4299 |
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. |
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot. Have a great day! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
ios, android
Current Behavior
if i want to use a top level await in
capacitor.config.ts
for an import of another file i got an error.i run:
npx --theme=xxxx cap sync
Expected Behavior
that a top level await works.
Code Reproduction
the import statement is:
const themeConfig = await import(`./src/theme/${process.env.npm_config_theme}/config`);
in the
package.json
the proptype
is set tomodule
Other Technical Details
npm --version
output:8.18.0
node --version
output:18.8.0
Additional Context
The stack trace of the error:
The text was updated successfully, but these errors were encountered: