HestiaPi / hestia-touch-one-ui

ONE UI files shown on the touch LCD
GNU General Public License v3.0
5 stars 7 forks source link

Cannot find module '@babel/compat-data/corejs3-shipped-proposals' #19

Closed atd closed 4 years ago

atd commented 4 years ago

After updating to master and running yarn, I cannot start yarn serve

 ERROR  Failed to compile with 1 errors                                                                                21:38:31

 error  in ./src/main.js                                                                                                       

Module build failed (from ./node_modules/babel-loader/lib/index.js):           
Error: [BABEL] /home/atd/dev/hestia-touch-one-ui/src/main.js: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
Require stack:                                                                                                                                     
- /home/atd/dev/hestia-touch-one-ui/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js                                           
- /home/atd/dev/hestia-touch-one-ui/node_modules/@babel/preset-env/lib/index.js                                                
- /home/atd/dev/hestia-touch-one-ui/node_modules/@vue/babel-preset-app/index.js                                                                    
- /home/atd/dev/hestia-touch-one-ui/node_modules/@babel/core/lib/config/files/plugins.js                                                           
- /home/atd/dev/hestia-touch-one-ui/node_modules/@babel/core/lib/config/files/index.js                                         
- /home/atd/dev/hestia-touch-one-ui/node_modules/@babel/core/lib/index.js                                                                          
- /home/atd/dev/hestia-touch-one-ui/node_modules/@vue/cli-plugin-babel/index.js
- /home/atd/dev/hestia-touch-one-ui/node_modules/@vue/cli-service/lib/Service.js                                               
- /home/atd/dev/hestia-touch-one-ui/node_modules/@vue/cli-service/bin/vue-cli-service.js (While processing: "/home/atd/dev/hestia-touch-one-ui/node_modules/@vue/babel-preset-
app/index.js")                                                                                                                                     
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
    at Function.Module._load (internal/modules/cjs/loader.js:838:27)         
    at Module.require (internal/modules/cjs/loader.js:1022:19)
    at require (internal/modules/cjs/helpers.js:72:18)                                                                         
    at Object.<anonymous> (/home/atd/dev/hestia-touch-one-ui/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)                                      
    at Module._compile (internal/modules/cjs/loader.js:1118:30)                                                                
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)                                                                      
    at Module.load (internal/modules/cjs/loader.js:982:32)                                                                                         
    at Function.Module._load (internal/modules/cjs/loader.js:875:14)                                                                               
    at Module.require (internal/modules/cjs/loader.js:1022:19)           
    at require (internal/modules/cjs/helpers.js:72:18)                                                                                             
    at Object.<anonymous> (/home/atd/dev/hestia-touch-one-ui/node_modules/@babel/preset-env/lib/index.js:29:44)                
    at Module._compile (internal/modules/cjs/loader.js:1118:30)                                                                                    
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)                                                                                                 
    at Module.load (internal/modules/cjs/loader.js:982:32)                             
    at Function.Module._load (internal/modules/cjs/loader.js:875:14)                                                                                                          

 @ multi (webpack)-dev-server/client?http://192.168.10.2:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js    
jaythomas commented 4 years ago

@atd hey I wasn't able to reproduce the issue, but I noticed your repo's master is behind HestiaPi's master branch/. Can you try updating your repo from upstream and deleting your node_modules and see if the updated yarn.lock fixes your problem?

git remote add upstream https://github.com/HestiaPi/hestia-touch-one-ui.git
git fetch upstream

git checkout master
git rebase upstream/master

rm -rf node_modules
yarn

If you still have the issue then we'll get this branch updated with an up-to-date lock file and merge it in.

atd commented 4 years ago

Hi @jaythomas

Please note that, although my master branch is outdated, the branch for #20 is updated

I already had tested the issue against last commit in HestiaPi's master