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

Cannot find module ol-integration #2

Closed
JulioJu opened this issue Feb 22, 2019 · 4 comments
Closed

Cannot find module ol-integration #2

JulioJu opened this issue Feb 22, 2019 · 4 comments

Comments

@JulioJu
Copy link

JulioJu commented Feb 22, 2019

Hi,

Thanks for your project

But when I run yarn install && ng serve I have error

ERROR in src/app/app.component.ts(3,30): error TS2307: Cannot find module 'ol-integration'.
src/app/app.module.ts(4,37): error TS2307: Cannot find module 'ol-integration'.

Could you help me please ?

Thanks in advance !

@OSHistory
Copy link
Owner

Hi there,

You need to actually buid the library first:

npm run build which actually runs ng build ol-integration

I added the library integration later on, but missed to include it
in the Readme, so thanks for the hint

@OSHistory
Copy link
Owner

I updated the Readme accordingly

@JulioJu
Copy link
Author

JulioJu commented Feb 23, 2019

@OSHistory

Thanks for your answer.

Actually npm run build run only ng build, and no ng build ol-integration. To build ol-integration we must run npm run build ol-integration. Maybe we must update package.json, or the README. ?

@OSHistory
Copy link
Owner

@JulioJu
Yes i mistyped in my comment (meant to type ǹpm run build_lib).
The readme has it right, though.
Thanks for pointing it out!

JulioJu pushed a commit to JulioJu/ng7-ol5-demo that referenced this issue Mar 7, 2019
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