rethinkdb-desktop icon indicating copy to clipboard operation
rethinkdb-desktop copied to clipboard

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

Open rodrigooler opened this issue 6 years ago • 4 comments

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 avatar Sep 06 '18 05:09 rodrigooler

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!

DMXL avatar Oct 15 '18 09:10 DMXL

Getting same error.

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

chinchang avatar Oct 16 '18 08:10 chinchang

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.

DMXL avatar Oct 16 '18 09:10 DMXL

@rodrigooler can we close this?

sagivf avatar Mar 18 '19 07:03 sagivf