-
Notifications
You must be signed in to change notification settings - Fork 32
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 using webpack: "ERROR in ./node_modules/got/index.js" #34
Comments
Apparently if you add the code below to your webpack.config file, the error disappears
I'm wondering, is that something you could do on your end to prevent those who uses this package to have to put this in webpack's config? |
I had the exact same problem, but as I already knew it was a problem connected to Turns out it is an issue with Webpack that doesn't like/understand/can handle the conditional require in As you see (I have still some tabs open to figure out how to fix it for me locally, besides just installing |
@janpio Nice, so when the next version of got gets published, this should be fixed, the only work required would be update the package itself. We should wait for it then... As for how i managed to fix it locally, you can see at this file https://github.com/GabrielDuarteM/trakt-scrobbler/blob/master/webpack.config.ts#L51 This is a typescript file, but essencially the only thing i needed to do was to add the lines 51~53, and it started to work again... Didn't even needed to install electron as a dev-dependency. Maybe it will start to pop another error from got, saying something like |
Nice. I will also wait for the Javascript is complicated sometimes ;) |
IMO I won't need to update anything as got probably won't go to 8.x on the next release, we can reopen if a got update is required here, but as I targeted 7.x.x, we should be good on trakt side |
Just redownloaded my project and got the same error again. |
I installed |
Wait wait wait, I don't understand what's happening anymore. So is something my fault, something that I need to fix? |
Nothing your fault, but you could upgrade the |
publishing the 7.x update with new API calls and got 8.x once npm servers are back online |
is anyone found solution on this ??? |
I don't know if it's just with me, but i'm trying to use this api with webpack, but when it builds it's giving me the error below:
I made a very simple repo just to demonstrate the error: https://github.com/GabrielDuarteM/trakt.tv-test
Just run
yarn
/npm install
andyarn start
/npm start
and check the logsAny ideas for what is causing it? It seems like its related to a dependent package you're using (got)
The text was updated successfully, but these errors were encountered: