-
-
Notifications
You must be signed in to change notification settings - Fork 611
Closed
Labels
Description
- Rollup Plugin Name: @rollup/plugin-typescript
- Rollup Plugin Version: ^8.3.0
- Rollup Version: ^2.63.0
- TypeScript Version: ^4.5.4
- Node Version: v17.2.0
- Operating System (or Browser): Windows 10
- Link to reproduction: https://github.com/hotamateurxxx/rollup-typescript-bug
Expected Behavior
Successfull build.
Actual Behavior
yarn build
...
Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
at error (D:\Projects\github.com\rollup-typescript-bug\node_modules\rollup\dist\shared\rollup.js:158:30)
at Module.error (D:\Projects\github.com\rollup-typescript-bug\node_modules\rollup\dist\shared\rollup.js:12423:16)
at Module.tryParse (D:\Projects\github.com\rollup-typescript-bug\node_modules\rollup\dist\shared\rollup.js:12826:25)
at Module.setSource (D:\Projects\github.com\rollup-typescript-bug\node_modules\rollup\dist\shared\rollup.js:12729:24)
at ModuleLoader.addModuleSource (D:\Projects\github.com\rollup-typescript-bug\node_modules\rollup\dist\shared\rollup.js:22202:20)Additional Information
Got closed issue Typescript plugin 4.0.0 Error: Unexpected token (Note that you need plugins to import files that are not JavaScript) #287 with plugin version that should to contain fix:
node_modules\@rollup\plugin-typescript\CHANGELOG.md
v8.2.1
2021-03-26
Bugfixes
- fix: bump TypeScript version (chore(typescript): bump TypeScript version #818)
- fix: update readme and peerDeps version (update plugin typescript readme and peerDeps version #830)
ritterzk, sonofmagic, Marvin1003, KeKsBoTer, FelipeBrenner and 6 more