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
Im trying to use React Native Paper on Web, using Next.JS Page Router and NX but i get error: SyntaxError: Cannot use import statement outside a module
But when i use that same configuration on App Router everything works fine.
Expected behaviour
This same configuration should work with Page and App Router.
Current behaviour
Im trying to use React Native Paper on Web, using Next.JS Page Router and NX but i get error:
SyntaxError: Cannot use import statement outside a module
But when i use that same configuration on App Router everything works fine.
Expected behaviour
This same configuration should work with Page and App Router.
How to reproduce?
"next": "14.2.16",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native-paper": "^5.13.1",
"react-native-safe-area-context": "^5.0.0",
"react-native-svg": "^15.11.1",
"react-native-vector-icons": "^10.2.0",
"react-native-web": "^0.19.13"
Preview
What have you tried so far?
Your Environment
Next.Js config:
The text was updated successfully, but these errors were encountered: