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

使用import导入时报错 #12

Open
davidweining2333 opened this issue Aug 15, 2019 · 2 comments
Open

使用import导入时报错 #12

davidweining2333 opened this issue Aug 15, 2019 · 2 comments

Comments

@davidweining2333
Copy link

Failed to compile.

./node_modules/_maptalks.mapboxgl@[email protected]/dist/maptalks.mapboxgl.es.js
Module not found: Can't resolve 'mapbox-gl' in 'D:\w-code\neweconomy\nc\node_modules_maptalks.mapbo
xgl@[email protected]\dist'

@davidweining2333
Copy link
Author

davidweining2333 commented Aug 16, 2019

package.json中没有对于mapbox-gl的依赖,如果用户本身也没有install mapbox-gl就会找不到这个模块,不知道是不是这个原因

@fuzhenn
Copy link
Member

fuzhenn commented Sep 17, 2019

应该是的,需要你自己手动引入mapbox-gl-js

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