timarney / react-app-rewired

Override create-react-app webpack configs without ejecting
MIT License
9.77k stars 425 forks source link

Cannot use import statement outside a module #584

Closed gautamlgtm closed 2 years ago

gautamlgtm commented 2 years ago

SyntaxError: Cannot use import statement outside a module at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1031:15) at Module._compile (node:internal/modules/cjs/loader:1065:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/Users/odn505/Documents/TDP/ShakeNBake/xaa-repricing-ui/node_modules/react-app-rewired/scripts/start.js:6:19)

this is a dependency issue, ive tried playing around with several node versions

camillalo commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

timarney commented 2 years ago

Please try updating to the latest --- will re-open as needed