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

when I use it in electron, Error: Cannot find module 'monaco-editor' #62

Closed
klren0312 opened this issue Nov 11, 2019 · 3 comments
Closed
Labels

Comments

@klren0312
Copy link

vue.esm.js?a026:1897 Error: Cannot find module 'monaco-editor'
    at Module._resolveFilename (module.js:543)
    at Function.Module._resolveFilename (D:\myProject\other\house365Spider\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35)
    at Function.Module._load (module.js:473)
    at Module.require (module.js:586)
    at require (internal/module.js:11)
    at VueComponent.mounted (D:\myProject\other\house365Spider\node_modules\vue-monaco\dist\vue-monaco.js:93)
    at invokeWithErrorHandling (vue.esm.js?a026:1863)
    at callHook (vue.esm.js?a026:4222)
    at Object.insert (vue.esm.js?a026:3148)
    at invokeInsertHook (vue.esm.js?a026:6351)
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.77. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@ArturKovacs
Copy link

I get the same error. How did you solve this @klren0312 ?

@klren0312
Copy link
Author

I get the same error. How did you solve this @klren0312 ?

I directly use monaco-editor, not use this

You can see this code
https://github.com/klren0312/ZSpider/blob/master/.electron-vue/webpack.renderer.config.js#L152
https://github.com/klren0312/ZSpider/blob/master/src/renderer/components/CodeEditor/index.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants