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
Issues using babel-typescript and @types packages #53
Comments
I am not 100% sure this is third party. I haven't had a similar issue or seen a similar issue in my research if, let's say, you would import chai in an application bundle. I can try to work on a reproduction from that standpoint tonight though. |
Generally speaking, this preprocessor is mostly a thin wrapper around the Rollup API, with most of its complexity coming from the custom file watcher. I am not 100% either, just suspicious since your error appears unrelated to API churn or the watcher. My first guess is that this has something to do with |
Ok,
On line 46 of const parsedPath = path.parse(file.path);
file.path = `${parsedPath.dir}/${result.fileName}`; This is because the file path is still .ts after the bundle generation. It needs the extension to be renamed to js. This combines the new file name generated by rollup with the original directory given to karma. I will try to put together a PR shortly! |
When trying to set up a project using
rollup-plugin-babel
, I seem to be getting a few errors.In my test I have
import { chai } from 'chai';
. I have installed@types/chai
. When I run the test I get the error:Please see https://github.com/silenceisgolden/karma-typescript-babel for a reproduction of the issue. Thanks for your time and help!
For convenience, here are a few files
The text was updated successfully, but these errors were encountered: