-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
web-nextjs build bug #69
Comments
I'm trying to resolve this bug myself for the sake of the electron implementation. My group hasn't decided on web-nextjs or web-cra yet, so I wanted to implement builds for both to see them each grow with the project and then decide on one or the other as the projects complexity reaches a certain level where leaving one behind would save time. I have compiled a list of links that seemed helpful and relevant to your code implementation. |
@a93h Were you able to solve this issue? |
@geofmureithi Realizing my start-up project didn't require any extra intricacies that react-native has to offer, I switched to Flutter. It's more of an organizer/planner concept so graphs and calendars are really all that's needed. |
@a93h Ok no problem.
I installed |
@brunolemos I have found the root of the problem though I haven't found a solution. |
could you try this PR and see if it fixes the issue? |
@lavaxun I cloned your repo and the problem persists. |
That's strange. May I know which version of node.js are you using? Besides, can you try to switch to this branch |
Aaah.. Yes. I missed switching the branch. |
@geofmureithi great to hear that! :) I suspect that the next.js v10.x So I tried to merge the definition file from |
Modify the following in module.exports = withTM({
typescript: {
ignoreBuildErrors: true, // this is the change
},
webpack(config) {
config.resolve.alias = {
...(config.resolve.alias || {}),
'react-native$': 'react-native-web',
}
config.resolve.extensions = [
'.web.js',
'.web.ts',
'.web.tsx',
...config.resolve.extensions,
]
return config
},
}) While building next.js performs an additional check of typescript errors is the source of the problem. |
More information here brunolemos/react-native-web-monorepo#69
git clone https://github.com/brunolemos/react-native-web-monorepo.git cd react-native-web-monorepo yarn yarn workspace web-nextjs build
The text was updated successfully, but these errors were encountered: