You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[./js/index.jsx] 3.58 KiB {main} [built] [failed] [1 error]
ERROR in ./js/index.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-preset-react' from '/home/mkahihu/Flask_Apps/hello_template/templates/static'
- If you want to resolve "react", use "module:react"
- Did you mean "@babel/react"?
at Function.resolveSync [as sync] (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/resolve/lib/sync.js:89:15)
at resolveStandardizedName (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
at resolvePreset (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/files/plugins.js:58:10)
at loadPreset (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/files/plugins.js:77:20)
at createDescriptor (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
at /home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
at Array.map (<anonymous>)
at createDescriptors (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPresetDescriptors (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
at presets (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
at mergeChainOpts (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-chain.js:319:26)
at /home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-chain.js:282:7
at Generator.next (<anonymous>)
at buildRootChain (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/config-chain.js:119:29)
at buildRootChain.next (<anonymous>)
at loadPrivatePartialConfig (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/partial.js:95:62)
at loadPrivatePartialConfig.next (<anonymous>)
at Function.<anonymous> (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/partial.js:120:25)
at Generator.next (<anonymous>)
at evaluateSync (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/gensync/index.js:244:28)
at Function.sync (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/gensync/index.js:84:14)
at Object.<anonymous> (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/@babel/core/lib/config/index.js:43:61)
at Object.<anonymous> (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:151:26)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:3:103)
at _next (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:5:194)
at /home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:5:364
at new Promise (<anonymous>)
at Object.<anonymous> (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:5:97)
at Object._loader (/home/mkahihu/Flask_Apps/hello_template/templates/static/node_modules/babel-loader/lib/index.js:231:18)
we found solution
{
"presets": ["@babel/preset-env","@babel/preset-react"]
}
The text was updated successfully, but these errors were encountered: