Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Error: Cannot find module 'monaco-editor/esm/vs/editor/contrib/fontZoom/fontZoom' #44

Open
rodrigooler opened this issue Sep 6, 2018 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@rodrigooler
Copy link
Member

The following error is occurring when using npm to install dependencies instead of yarn

MacBook-Pro-de-Rodrigo:rebirthdb-desktop rodrigooler$ npm run dev

> [email protected] dev /Users/rodrigooler/projects/rebirthdb-desktop
> cross-env START_HOT=1 cross-env START_HOT=1 npm run start-renderer-dev


> [email protected] start-renderer-dev /Users/rodrigooler/projects/rebirthdb-desktop
> cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --mode development --config webpack.config.dev.js

/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/webpack-dev-server/bin/webpack-dev-server.js:343
    throw err;
    ^

Error: Cannot find module 'monaco-editor/esm/vs/editor/contrib/fontZoom/fontZoom'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.resolve (internal/modules/cjs/helpers.js:30:19)
    at resolveMonacoPath (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/monaco-editor-webpack-plugin/index.js:21:18)
    at use.options.pre.featurePaths.map (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/monaco-editor-webpack-plugin/index.js:107:51)
    at Array.map (<anonymous>)
    at createLoaderRules (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/monaco-editor-webpack-plugin/index.js:107:31)
    at MonacoWebpackPlugin.apply (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/monaco-editor-webpack-plugin/index.js:50:19)
    at webpack (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/webpack/lib/webpack.js:37:12)
    at startDevServer (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/webpack-dev-server/bin/webpack-dev-server.js:335:16)
    at processOptions (/Users/rodrigooler/projects/rebirthdb-desktop/node_modules/webpack-dev-server/bin/webpack-dev-server.js:309:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start-renderer-dev: `cross-env NODE_ENV=development node --trace-warnings -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --mode development --config webpack.config.dev.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start-renderer-dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rodrigooler/.npm/_logs/2018-09-06T04_48_45_100Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `cross-env START_HOT=1 cross-env START_HOT=1 npm run start-renderer-dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rodrigooler/.npm/_logs/2018-09-06T04_48_45_137Z-debug.log
MacBook-Pro-de-Rodrigo:rebirthdb-desktop rodrigooler$ 

captura de tela 2018-09-06 as 01 48 58

@rodrigooler rodrigooler added the bug Something isn't working label Sep 6, 2018
@rodrigooler rodrigooler self-assigned this Sep 6, 2018
@DMXL
Copy link

DMXL commented Oct 15, 2018

Hey how far along are you with this issue? Just came across this from another project, and happened to have found out that it's the incompatibility of the monaco-editor-webpack-plugin. In my case I let it fallback to v1.4.0 and the error is gone. FYI my monaco-editor is at v0.13.*. Hope this'd help!

@chinchang
Copy link

Getting same error.

@DMXL Did you fix it by using [email protected]?

@DMXL
Copy link

DMXL commented Oct 16, 2018

Getting same error.

@DMXL Did you fix it by using [email protected]?

@chinchang No I meant the webpack plugin is v1.4.0, and monaco is v0.13.1.

Although I'm not too sure if it's the same situation. The zoom font feature WAS only added post v0.14.* of monaco, and that should be compatible with webpack plugin v1.5.*. So if you use the newest webpack plugin with monaco v0.13.* it might cause the error. Just make sure you're using the right version plugin with your monaco core. 🙂

PS: Sorry my references of the plugin version were quite confusing... Now all corrected.

@sagivf
Copy link
Contributor

sagivf commented Mar 18, 2019

@rodrigooler can we close this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants