Skip to content

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

@kylelamse

Description

@kylelamse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions