Skip to content
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

Next.js + RNW: import *.web.js #4794

Closed
kuznetsov-online opened this issue Jul 17, 2018 · 2 comments · May be fixed by adamlaska/next.js#32, NOUIY/next.js#96, jackromo888/next.js#103, NOUIY/next.js#865 or X-oss-byte/next.js#159

Comments

@kuznetsov-online
Copy link

Bug report

importing of *.web.js files doesn't work

System information

  • OS: macOS
  • Version of Next.js: 6.1.1
  • Version of RNW: 0.8.8
@kuznetsov-online
Copy link
Author

I have found solution

module.exports = {
  webpack: config => {
    config.resolve.extensions = ['.web.js', ...config.resolve.extensions]
    return config
  },
}

@HaNdTriX
Copy link
Contributor

HaNdTriX commented Aug 22, 2018

@kuznetsov-online I could not reproduce your example.
You should not have to change the webpack config in this case.

  • Are you using any plugins?
  • Can you add an example, that we can reproduce?

I tried it with: https://github.com/zeit/next.js/tree/canary/examples/with-react-native-web and it worked fine.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.