NorthwoodsSoftware/gojs-angular-basic

Cannot find module 'gojs'.

Closed this issue · 4 comments

How can i get rid of that error am current getting running exactly codes as from from this repo?

It happens on this line "import * as go from 'gojs';" in app.component.ts and inspector.component.ts

I am unable to reproduce your issue. I just tried downloading the full contents of the repo, installed packages with 'npm i', and ran 'ng serve' with no problems. Did you change any of the files at all?

I downloaded a zip file from this repo, unzip and ran npm install. After doing so, everything went okay without any issue.
When i ran npm install --save gojs-angular and npm install gojs, gojs-angular was installed but 'gojs' was not installed hence Cannot find module 'gojs' error was thrown, any help @rjohnson465

Why are you installing gojs-angular and gojs individually? They are listed in the package.json for this project, so 'npm install' will be sufficient. Either way, I just tried exactly what you wrote without issue -- I downloaded the repo, ran the install commands you listed, and could serve the angular application just fine. What are you doing differently?

Closing, feel free to continue commenting if the issue persists