Subscribe on changes!

Start up with Error: Cannot find module 'worker_threads'

avatar
Mar 16th 2021

Version

3.0.5

Reproduction link

https://gist.github.com/mymusise/fa9b7d3a39672ca3b0c1070e532f5109

Steps to reproduce

npm install vue@next npm install -g @vue/cli npm init @vitejs/app web npm install npm run dev

What is expected?

internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'worker_threads' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/home/mymusise/pro/TextSuggest/front/node_modules/vite/dist/node/chunks/dep-6f1d3d8c.js:19:24) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) npm ERR! code 1 npm ERR! path /home/mymusise/pro/TextSuggest/front npm ERR! command failed npm ERR! command sh -c vite

What is actually happening?

I got a error

avatar
Mar 16th 2021

This is not realated to Vue, but to Vite. Open an issue there.

avatar
Mar 16th 2021

Thank you guy! I got my answer.