Skip to content
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

error: No plugin known to handle file 'foo.ts'. #20

Open
mizzao opened this issue Nov 7, 2019 · 2 comments
Open

error: No plugin known to handle file 'foo.ts'. #20

mizzao opened this issue Nov 7, 2019 · 2 comments

Comments

@mizzao
Copy link

mizzao commented Nov 7, 2019

I'm currently trying to update an (old) Meteor package to TypeScript (TurkServer/turkserver-meteor#98), and for whatever reason can't get Meteor to actually build any of the .ts files using either this package or barbatus:typescript. I've tried meteor test-packages --release with versions 1.4.4.6 through 1.8.1, and keep getting errors like this:

   While building package mizzao:turkserver:
   error: No plugin known to handle file 'server/index.ts'. If you want this file to be a static asset, use addAssets instead of addFiles; eg, api.addAssets('server/index.ts', 'client').
   error: No plugin known to handle file 'client/index.ts'. If you want this file to be a static asset, use addAssets instead of addFiles; eg, api.addAssets('client/index.ts', 'client').

I know this is probably user error, but having been a frequent Meteor user from 0.5 through 1.3 I've tried everything I know. If you know of any stupid newb mistakes that might be causing this, I'd appreciate tips. Here's the (WIP) package.js:

https://github.com/TurkServer/turkserver-meteor/blob/typescript/package.js

@mizzao
Copy link
Author

mizzao commented Nov 7, 2019

Note that I don't get this error until 0.8.1 (the oldest barbatus ports), but from 0.9.0 onward where it seems meteor-typescript was integrated into typescript-compiler, it has this issue.

@yorrd
Copy link
Member

yorrd commented Nov 19, 2019

I think you're adding .ts files to a meteor package here. I'm not sure this package supports that. We're using the package to just transpile standard .ts files to include them in the static-html bundle. Might need to change this package to include a compiler that actually works on Meteor package files. You could also try the newly added official way of doing things with Typescript :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants