Skip to content

built project but npm start fails #81

Answered by RussCoder
GiulioCesare asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, Giulio!

That's because you started the viewer without building the library at least once.

In the root directory of the project run:

npm run install
npm run build

It will build everything. Then you can start the viewer and work only with it.
Alternatively you can build only the library, in the library folder run npm install and npm run build - the library bundle will be copied to the viewer's directory. If you want to change the library then run npm start there - the library will be recreated on each change.

The library and the viewer have separate configs, so you should either build the library once or run npm start in two consoles - one for the library and one for the viewer.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@GiulioCesare
Comment options

Comment options

You must be logged in to vote
1 reply
@GiulioCesare
Comment options

Answer selected by RussCoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants