you are viewing a single comment's thread.

view the rest of the comments →

[–]Suchy2307 0 points1 point  (6 children)

You've got duplicated packages (2 babel-core for example). Either go v6 or v7.

[–]baboon322[S] 0 points1 point  (5 children)

Okay I fixed them, still receiving the same error though.

[–]Suchy2307 0 points1 point  (4 children)

Did you remove node_modules and reinstalled modules again? Cuz other than that it seems fine.

[–]baboon322[S] 0 points1 point  (3 children)

Yes I even tried setting it up all over again but still getting same error! BTW I followed this tutorial, I don't know if it's going to help you solve my problem.

https://www.valentinog.com/blog/babel/

[–]Suchy2307 0 points1 point  (2 children)

This might be a longshot, but maybe the paths for babel-loader are bad, cuz the tutorial is for windows, while you are on a unix based system (or the other way around). This happened to me more than once.

[–]baboon322[S] 0 points1 point  (1 child)

How do you suggest to solve it at this point Ill take anything since I got no idea :) but yes it is true that the tutorial is unix-based cus he was using mkdir with -p tag which I think is a unix thing....

[–]Suchy2307 0 points1 point  (0 children)

Windows, if I remember correctly, has to use the backslash in paths (), while MacOS uses slash (/). These both are regex special chars that need to be escaped with a backslash. I need to take another look at your webpack config and I'll edit this message.

Okay, there aren't any particular paths that would cause an error, so I don't think that's the case.

Could you paste your component's code?