question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symlinks to files outside package root are not being compiled

See original GitHub issue

typescript2 symlink issue When symlink is created to the dependency, rollup is giving error Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)

Environment

Versions

  • typescript:^3.6.4
  • rollup:“^1.26.0”
  • rollup-plugin-typescript2:^0.24.3

rollup.config.js

tsconfig.json

package.json

plugin output with verbosity 3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
TerenceZcommented, Nov 12, 2019

The same issue, but I use lerna to link packages, and rollup complains unexpected token for the linked packages.

2reactions
mokicommented, Nov 17, 2019

i think we are on the same page here. #194

@PavaniVaka @TerenceZ @thealjey any chance for a small repo with reproduction?

@ezolenko https://github.com/moki/mokui there is one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

symlink outside root directory - Stack Overflow
Ok, I am trying to create a symbolic link using php symlink() function, but am not fully understanding it. Here is what the...
Read more >
Adding to path vs. linking from /bin - Unix Stack Exchange
If you call the application by a symbolic link, its code might fail to follow it and then look for these resource files...
Read more >
Let a soft symlinked directory work as if it is a physical one.
I try to compile thermo_pw according to guidance here [1]. This package needs to be placed in the root directory of QE package...
Read more >
The Buildroot user manual
While Buildroot itself will build most host packages it needs for the compilation, certain standard Linux utilities are expected to be already installed...
Read more >
Dependency resolution - Parcel
Typically, these dependencies do not specify a full absolute path, but rather a shorter ... A package root is a directory with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found