-
Notifications
You must be signed in to change notification settings - Fork 4
SyntaxError: Unexpected reserved word #4
Comments
Hello. |
Can you help me?
What is that? Postcss-loader includes in webpack are: |
@jedmao, @karantin2020, sorry for the late reply. It requires you to use |
@jo-asakura check out the note on the babel site regarding this. es6-reg.js uses the require hook, which really shouldn't be used for libraries because it can cause conflicts (it takes over ALL require calls -- not just those used by this library). Even worse, es6-reg.js sets I think the preferred way to handle this is to create a build that has already been run through babel before exporting to NPM (something like the way https://github.com/babel/babel-library-boilerplate handles it). Either that or I think you can use the babel runtime transformer. |
@jo-asakura that does solve the immediate problem. What do you think about what @joekrill is saying? |
@jo-asakura I just submitted a pull request (#5) that implements this, if you'd like to use it. |
I've just downloaded neat and started to play with it and I'm still getting this error. Below is my output. If this is unrelated then please let me know.
|
@qasimalyas it's the same problem I was having. See #4 (comment). @jo-asakura hasn't done a version bump yet on npm I think. |
Thanks @jedmao That does seem to be case here. Surely the ticket should only be closed once NPM has been updated otherwise others will be getting the same issue and potentially reporting it again |
i get
I'm using webpack, my setup looks like this
|
but than i get this message import neatCore from './neat-core.es6.js'; |
@Admdh you clearly have not read this thread. |
i understand.. but I'm running webpack with node.js how can i setup babel so neat could work properly? |
@Admdh, make sure you're running |
version update helped! i think that was the problem! thank you! |
I'm getting the following error:
Using the following processors:
The text was updated successfully, but these errors were encountered: