Git Product home page Git Product logo

Comments (4)

hampoelz avatar hampoelz commented on August 9, 2024

It is difficult to solve the problem without further information.

  • It looks like you are using quasar. Does the same error occur with a plain Capacitor project?
  • Does the build work if you only use the other Capacitor plugins, without the NodeJS plugin?
  • Are you using the latest Android Studio version and is your Gradle JVM configured to Java version 17?

from capacitor-nodejs.

surajpra avatar surajpra commented on August 9, 2024

It is difficult to solve the problem without further information.

Yes, i am using quasar, but its working fine with plain capacitor project but not with quasar capacitor project.
i am using latest android studio version already updated gradle 8.0.0 and java version 17.

but iam not able to execute

error - Unable to copy the Node.js project from APK.

from capacitor-nodejs.

surajpra avatar surajpra commented on August 9, 2024

my main purpose is, i want to use escpos plugin
https://www.npmjs.com/package/escpos
with capacitorjs.

from capacitor-nodejs.

hampoelz avatar hampoelz commented on August 9, 2024

The error message "Unable to copy the Node.js project from APK." indicates that your nodejs project folder is not included when bundling.

In your project structure, the nodejs project folder is located directly in the capacitor-src folder, but usually it should be located in the the static subfolder (in the case of quasar probably in capacitor-src/static?) to ensure that your nodejs project is taken into account by the bundler.

See https://github.com/hampoelz/Capacitor-NodeJS#minimal-example

But since I've never used quasar, you may need to check if it handles the bundling of your project the same way as capacitor.

from capacitor-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.