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

Symlinked local dependencies causes 'ParseError: Unexpected token' #94

Open
kylelamse opened this issue Apr 7, 2016 · 1 comment
Open

Comments

@kylelamse
Copy link

I have my project structure set up to symlink local dependencies. Those symlinked dependencies also import css files. I have an example project linked below so you can see the issue reproduced. You can bundle with browserify just fine if you import the 'style.css' while working inside the 'styled-component' project, but if you try to use it as a symlinked local dependency using linklocal, you will get an 'Unexpected token' error as soon as it tries to read the css.

project
  main
    index.js
    node_modules
      styled-component -> ../../styled-component
  styled-component
    index.js
    style.css
    package.json

Link: example project

@kylelamse
Copy link
Author

This issue was fixed by enabling the global option when using the nodejs API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant