-
Notifications
You must be signed in to change notification settings - Fork 71
Unexpected character '@'
when using path aliases
#164
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
Comments
Initially tsconfig was without "compileOnSave" option,
Thats why I need to workaround through adding "tsconfigOverride" =( |
You need a |
Now I haven't |
Please reopen the issue.
and still haven't success! |
You can probably use |
If |
I tried transformers (point 2), no success =( |
Migrate to rollup-plugin-typescript with rollup-plugin-import-resolver |
Unexpected character '@'
when using path aliases
I'm not sure what was going on in OP's codebase as no repro was provided and the issue they linked to (#159) was due to an invalid misconfiguration. The config posted here has a similar misconfiguration, I also found the old commit from a repo they later linked (I modified their comment to point to the permalink as well), but didn't see a Rollup config there, so hard to tell what the issue was here. It was likely a misconfiguration though, as lots of people have gotten path aliases, |
What happens and why it is wrong
Just try same way
index.ts:
import SomeComponent from '@common/SomeComponent';
and got error:
Environment
Win10, MS Visual Studio 2019
Versions
rollup.config.js
tsconfig.json
The text was updated successfully, but these errors were encountered: