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
typescript plugin does not recognize typescript code #80
Comments
Thanks for the issue and repro 🍺 I just tried your reproduction and all works as expected for me: → npm run build
> test-rollup-typescript@1.0.0 build /code/forks/test-rollup-typescript
> rollup -c
src/index.ts → bundle.js...
created bundle.js in 141ms Could something on your system be interfering? |
Thank you for the quick reply. I have done some further testing, and I was able to pin down more specifically why it did not work in my environment and why I does work in other environments. I still believe that there is a bug somewhere. It appears that a parent folder of the folder I was working from contained a parenthesis "(". The exact path I was working from was "/Users/quentinadam/Dropbox (Personal)/Projects/test-rollup-typescript". Spaces in the path do not seem to interfere but parentheses do. If the name of the folder is changed for example from "test-rollup-typescript" to "test-rollup-typescript(test)" the The issue is 100% reproducible on a fresh Digital Ocean VPS with Ubuntu 18.04 with the following commands :
|
This seems to be caused by pluginutils' |
How Do We Reproduce?
I have created a minimal github repo here:
https://github.com/quentinadam/test-rollup-typescript
Compile with rollup by running
npm run build
orrollup -c
Expected Behavior
Should compile the typescript code into a javascript bundle.
Actual Behavior
Errors with compilation (such as
Error: The keyword 'private' is reserved (Note that you need plugins to import files that are not JavaScript
) which show that the typescript code is not recognized.The text was updated successfully, but these errors were encountered: