Open flexbox opened 2 years ago
Steps to repoduce:
❯ node --version v16.13.1
http://localhost:3000/ renders this error
Server Error SyntaxError: Cannot use import statement outside a module
I have a feeling it's related to webpack / react-native-web config because this is my terminal outputs this:
webpack
react-native-web
event - compiled successfully event - build page: / wait - compiling... event - compiled successfully event - build page: /next/dist/pages/_error wait - compiling... event - compiled successfully /Users/cerebra/workspace/tmp/nativebase-templates/universal-app-template-nativebase-typescript/node_modules/react-native-web/dist/exports/StyleSheet/createCompileableStyle.js:11 import normalizeValueWithProperty from './normalizeValueWithProperty'; ^^^^^^ 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)
Bump
any fix for this ?
Maybe it's fixed with the last release of react-native-web 0.18?
Steps to repoduce:
http://localhost:3000/ renders this error
I have a feeling it's related to
webpack
/react-native-web
config because this is my terminal outputs this: