-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
"You may need an appropriate loader?" error using next7 #7
Comments
Yarn is not supported because it copies dependencies instead of symlinking them. This is why hot-reloading is not working. I will add a comment about that in the README because it is a common mistake. Yarn workspaces work fine though. I advice two things:
Tell me if it solves it for you :) |
I just added a FAQ to the README fyi. |
I am actually already using yarn workspaces though! Just lerna for versioning. (i've updated my original comment). I am using the latest canary version of next. |
Yeah i've followed all the steps properly. I'm not sure what i've done wrong for a loader to be missing for JSX? |
You may need to adapt the Can you provide an example/repo so I can reproduce your problem? |
It seemed to be an issue with one of the canary releases of next. I'm having to use canary releases due to the webpack upgrade that's included in them. I can confirm this issue has gone away, but the hot reloading issue has come back. ( |
I’ll try to test this plugin with Canary to prevent a future incompatibility |
@martpie Can you elucidate: How would I use yarn workspaces without using yarn? I'm using yarn workspaces and cannot get next to transpile typescript using this module. |
This issue is 2 years old, please open a new one |
By "yarn is not supported", I meant |
So i'm not doing anything special. Have a few shared (via lerna/yarn workspaces monorepo structure) react components using styled components.
My
babel.config.js
file looks like this:and my
next.config.js
file looks like:Running
yarn dev
in my next project runs, but when i try and load the page, i get the following error:Weirdly, if i comment out the entries inside
transpileModules
, everything compiles fine, and the site loads, but then obviously none of the changes are being watched/hot reloaded, so it seems to be a local issue to transpile modules.What am i doing wrong?
The text was updated successfully, but these errors were encountered: