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

Don't work with electron-vue. #33

Closed
SmArtem opened this issue Mar 1, 2018 · 2 comments
Closed

Don't work with electron-vue. #33

SmArtem opened this issue Mar 1, 2018 · 2 comments

Comments

@SmArtem
Copy link

SmArtem commented Mar 1, 2018

Uncaught (in promise) TypeError: this.$view.getProjection is not a function at VueComponent.createTileGrid (C:\Users\smart\Desktop\my-little-gis\node_modules\vuelayers\lib\core\index.js:4207) at VueComponent.boundFn [as createTileGrid] (vue.esm.js?efeb:191) at VueComponent.init (C:\Users\smart\Desktop\my-little-gis\node_modules\vuelayers\lib\core\index.js:4234) at boundFn (vue.esm.js?efeb:190) at <anonymous>
C:\Users\smart\Desktop\my-little-gis\node_modules\openlayers\dist\ol.js:47 Uncaught (in promise) TypeError: a.addEventListener is not a function
C:\Users\smart\Desktop\my-little-gis\node_modules\openlayers\dist\ol.js:114 Uncaught TypeError: a.xa is not a function

https://github.com/SmArtem/my-little-gis

@SmArtem SmArtem changed the title Don't work with vue-electron. Don't work with electron-vue. Mar 1, 2018
@ghettovoice
Copy link
Owner

Hello!
There is known issue with electron setup, try this solution #23 (comment).
If in brief you should add vuelayers to whiteListedModules in .electron-vue/webpack.renderer.config.js
at https://github.com/SmArtem/my-little-gis/blob/master/.electron-vue/webpack.renderer.config.js#L21

@SmArtem
Copy link
Author

SmArtem commented Mar 1, 2018

Thank you very much for your work.

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