Skip to content

cant find jscad/core when building #8

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

Closed
hrgdavor opened this issue Nov 6, 2020 · 11 comments
Closed

cant find jscad/core when building #8

hrgdavor opened this issue Nov 6, 2020 · 11 comments

Comments

@hrgdavor
Copy link

hrgdavor commented Nov 6, 2020

npm run build fails

Can't walk dependency graph: Cannot find module '@jscad/core'
@z3dev
Copy link
Owner

z3dev commented Nov 7, 2020

@hrgdavor welcome! thanks for taking a look at these.

i was waiting for the latest alpha release of V2 JSCAD. There were a few late changes, so please update your local copy, and rebuild the library in dist.

git pull
npm run build

@hrgdavor
Copy link
Author

hrgdavor commented Nov 7, 2020

hm, did not work.
I tried

git pull
npm install
npm run build

still the same error Can't walk dependency graph: Cannot find module '@jscad/core' from '*********\vue-components\src'

Do I need to build openjscad somehow or this project has to be somewhere near openjscad ?

@z3dev
Copy link
Owner

z3dev commented Nov 7, 2020

The build script should create a library is the ‘dist’ directory.

After the library is created, just open any of the HTML files. Hopefully, the little VUE application starts and shows some solids.

@z3dev
Copy link
Owner

z3dev commented Nov 7, 2020

Can you try starting again? Maybe NPM is not working correctly.

@hrgdavor
Copy link
Author

hrgdavor commented Nov 7, 2020

Starting again did not help

  "dependencies": {
    "@jscad/regl-renderer": "alpha",
    "@jscad/core": "alpha"
  },

the dep looks strange, how is the npm supposed to resolve that ?
Do I need to do some steps in my jscad project .

does this project have to be somewhere specific related to jscad ?

If I were to try this on a freshly installed PC, would I need to download jscad too, and then do something with it first ?

@hrgdavor
Copy link
Author

hrgdavor commented Nov 7, 2020

image

@hrgdavor
Copy link
Author

hrgdavor commented Nov 7, 2020

build works if I change dependencies

  "dependencies": {
    "@jscad/regl-renderer": "2.0.0-alpha.9",
    "@jscad/core": "2.0.0-alpha.10"
  },

then

npm install
nmp run build

npm: v6.14.8, node v14.15.0

@z3dev
Copy link
Owner

z3dev commented Nov 8, 2020

Hmmm... what version of NPM are you using.

The ‘alpha’ versions will resolve to the latest release tagged with ‘alpha’.

You’re changes will work but should not be necessary. And the next build will not use the newest ‘alpha’ version.

Hmm...

@z3dev
Copy link
Owner

z3dev commented Nov 8, 2020

18E7886A-582B-4AAA-B44A-E1D7DD621147

@z3dev
Copy link
Owner

z3dev commented Nov 8, 2020

The ‘alpha’ version should resolve to 2.0.0-alpha.9

@hrgdavor
Copy link
Author

hrgdavor commented Nov 8, 2020

Yes,
The issue was older node and npm ...
I changed versions manually while trying to get it working.

I did the whole process from scratch with new node and npm, and now it worked fine.

@hrgdavor hrgdavor closed this as completed Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants