Skip to content
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

Vue js build failed #1

Closed
realrecordzLab opened this issue Apr 25, 2022 · 1 comment
Closed

Vue js build failed #1

realrecordzLab opened this issue Apr 25, 2022 · 1 comment
Labels
needs reply issue needs more information from author

Comments

@realrecordzLab
Copy link

I've noticed that if I create the required files inside the dist folder of my vue app, the build will fail because it's unable to found the capacitor nodejs module and the dist folder is deleted. Maybe it's better to deploy them inside the public folder of vuejs project?

@hampoelz
Copy link
Owner

hampoelz commented Apr 29, 2022

Hey @realrecordzLab!

Do I understand correctly, your app (I guess it's an android app) builds correctly without the Capacitor-NodeJS plugin, but as soon as you add this plugin to your Vue and Capacitor project the build fails?

If you set the webDir and nodeDir variables correctly in the capacitor configuration file, this plugin should work. Also make sure your build system copies the NodeJS project directory to the output directory. For example by adding cp -r src/nodejs dist/ to the build steps.

If that's not the case, it would be great if you could create a minimal sample project.

@hampoelz hampoelz added the needs reply issue needs more information from author label Jun 25, 2022
@hampoelz hampoelz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reply issue needs more information from author
Projects
None yet
Development

No branches or pull requests

2 participants