-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Transpiling components outside /pages? #883
Comments
Duplicate of #706 |
Short term answer is use relative paths for now. So |
Ah, sorry for the duplicate, and makes sense about not transpiling node_modules. Thanks! |
🙌 |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello! I'm just now getting started with next (using version 1.2.3), and I have the following folder structure:
I have a symlink:
node_modules/lib -> ../lib
.I import my
Test
component withimport Test from 'lib/components/Test'
.This works fine, but it seems to not be transpiled: if I
import
anything from myTest
component, I get the following error:SyntaxError: Unexpected token import
.Any guidance here? I'd be fine having my
/components
under/pages
but I don't want them to be able to be served up standalone.Thanks!
The text was updated successfully, but these errors were encountered: