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

plugin not working #81

Open
george-norris-salesforce opened this issue Jul 11, 2018 · 4 comments
Open

plugin not working #81

george-norris-salesforce opened this issue Jul 11, 2018 · 4 comments

Comments

@george-norris-salesforce

attempting to use plugin. Getting this error ,essage when trying to compile via Babel.

npm install babel-plugin-transform-decorators-legacy --save-dev

and add the following line to your .babelrc file:

{
  "plugins": ["transform-decorators-legacy"]
}

Which I've done and I get the same message when trying to compile again.

@loganfsmyth
Copy link
Owner

There isn't really enough to go on here. How are you running Babel? Babel doesn't print that message, so maybe the issue is with whatever is printing the message?

@sibinx7
Copy link

sibinx7 commented Sep 18, 2018

I had same error. I had babel loader configuration in webpack config file. Please check webpack settings if you have one

@jiangleicode
Copy link

plugin not working and i do not know why?
ERROR in ./app/js/class/demo16.js
Module parse failed: D:\nodejs\es6\app\js\class\demo16.js Unexpected character '@' (10:8)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '@' (10:8)

@jiangleicode
Copy link

.pipe(gulpWebpack({ module: { loaders: [// use loaders instead of rules {test: /\.js$/, loader: 'babel-loader', exclude:'/node_modules/'} ] } })

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

4 participants