having trouble importing any plugins #8071
Answered
by
jcesarmobile
yehudaclinton
asked this question in
Q&A
-
import { App } from '@capacitor/app'; in www/js/index.js just crashes all js on that page capacitor.config,json has "webDir": "www" the project is initialized and app runs fine otherwise is there something like this that needs to be imported first like in index.html? |
Beta Was this translation helpful? Give feedback.
Answered by
jcesarmobile
Jul 21, 2025
Replies: 1 comment 3 replies
-
When using npm packages you'll need to use a bundler (such as vite) or some tooling that copies the plugins code from node_modules to your www folder. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
yehudaclinton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using npm packages you'll need to use a bundler (such as vite) or some tooling that copies the plugins code from node_modules to your www folder.