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

any chance to use this plugin with coffee-loader? #104

Open
yi opened this issue Jul 4, 2019 · 1 comment
Open

any chance to use this plugin with coffee-loader? #104

yi opened this issue Jul 4, 2019 · 1 comment

Comments

@yi
Copy link

yi commented Jul 4, 2019

hi, our react app is written in coffeescript. Would it be possible to use this plugin with coffee-loader?

I've tried installing this plugin as es-plugin to coffee-loader, but go following error:

Error: Got an unexpected exception from the coffeescript compiler. The original exception was: Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/ty/workspaces/tgb-h5client/node_modules/babel-preset-react/lib/index.js
(The coffeescript compiler should not raise *unexpected* exceptions. You can file this error as an issue of the coffeescript compiler: https://github.com/jashkenas/coffee-script/issues)
@ezhlobo
Copy link
Member

ezhlobo commented Jul 5, 2019

@yi hey, thank you for this report.

Do you think you can provide a repository with this error inside? This will be very handy to debug because I'm not familiar with coffee-loader and your environment.

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