-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Webpack error #98123 when running "gatsby develop" #17557
Comments
@coldPen sorry that you're experiencing errors with gatsby, but based on the description itself it's a bit difficult to triage. Also you forgot to link the repo. |
Thank you @jonniebigodes , here's the repo although I'm not sure this has anything to do with the project itself, I can run |
@coldPen cloning it to my wsl machine and going to take a look at what could be the issue. |
@coldPen i've been testing this today and this one is kinda tricky to triage. Here are the steps i took.
The errors thrown are based on the fact that i confugured a space for issues regarding gatsby and contenful and when the plugin tries to fetch the data based on your query it will fail. I would like for you to do a couple of steps to see if you can get it to run in wsl.
These because if memory serves me right it could be some issue with a package. Feel free to provide feedback so that we can close this issue or continue to work on it until we find a suitable solution. |
Thank you for paying close attention to this! I'll get back to you as soon as I get back on this computer. |
I am seeing this error too. My code works fine on my mac, but fails in CI, which uses Ubuntu (https://circleci.com/gh/1337lawyers/web/360) |
I solved my issue by adding python to my environment - perhaps it's the same issue you're having @coldPen ? |
@shicholas |
@shicholas locally on ubuntu 18.04 it comes with python 2.7+ if not mistaken. |
hmm, it's probably not it then. fwiw, I have Python 3.8 installed. |
I'm getting the same issue when attempting to run
I've tried Any help would be great, not quite sure were to go from here. |
I've also updated to Python: 3.7.4 but still not working....dang! |
I tried moving the project folder to another directory as I had a special character in the folder path & everything works fine now 👍 Maybe check your folder structure doesn't have any special characters. @coldPen |
@shaneiadt thank you, but that isn't the case (repo is named |
@shaneiadt special characters would be for instance I considered that the use of characters could be the case in the last test that i did, because one special character of those listed above is being used in a query, but i confirmed that was not the case by modifying the query in the appropriate file to my contentful space and it returned the data correctly. Also when i test a issue that pops in here, i usually use the following nomenclature for testing, create a gatsby site called @coldPen on one side i'm happy that it's working, but on the other side having to reinstall the wsl is something that is not actually productive if the issue persists. |
@jonniebigodes I feel this problem is largely beyond my understanding, furthermore this only concerned a work environment which I only use secondarily. I'm sorry but I need to make this repo private since I have to commit my environment variables file to start deploying it. Won't close the issue though, if you think it's still relevant? |
@coldPen it could be some variable we're both missing, probably due to some permissions or something like that,go ahead and make the repo private and continue your work. I'll leave it you to if you want this open or not. If you want to close it feel free to do so and we can always re-open it. |
For what it's worth I had this same issue and it came down to a case-sensitivity issue. It worked fine on my mac but failed on Netlify's servers because of some of the component names: import Button from '../components/button src |
|
I was facing the same issue. Here's what I did to fix it.
|
This error was introduced by updating an ESLint plugin, which is not related to Gatsby at all. My workaround is to delete |
Hello,
Also remember about gatsby-config.js in root
|
When trying to build as a part of a GH action, we ran into failures like: ``` ERROR #98123 WEBPACK Generating JavaScript bundles failed Can't resolve '../components/layout' in '/home/runner/work/tmr08c.github.io/tmr08c.github.io/src/pages' ``` Based on what [others have seen](gatsbyjs/gatsby#17557 (comment)) it seems like this can be a result of mismatched file name casing. This commit updates the imports to match the casing of the filename (which use titlecase).
For some of you the issue could be with the node version. |
I am still running into this issue now attempting to follow the Gatsby tutorial, running node v13.6.0 |
For what it's worth.. for the same package.json file, below two commands install the packages in node_modules quite differently. Pay attention to the 'core-js' folder (to which I'm getting #98123 WEBPACK error. The gatsby new version works great. Note: Project under test is an official starter example from here
|
deleted my .cache folder - worked like a charm. |
Works perfectly fine |
I'm running into this issue too and I'm on a Mac but my setup is within a monorepo. If I create a new project outside of the monorepo I have no issues, however, if I create a new project within my monorepo or if I create it outside and move it to the monorepo I start having this issue. One way I found was to remove node_modules and instead of using |
I've been running into this issue using |
I'm also running into this issue. I've attempted:
I'm using a Windows 10 Professional computer running an administrator session on Windows command prompt. Seems like #19922 and #19268 may be related. (I had tried using WSLv2 and Git Bash but encountered other issues with these) |
I was facing this also, adding |
Hi, I have resolved the issue anyways. Thanks |
This is how I solved this problem,
If the issue persists still, try doing a gatsby clean. |
I resolved this by removing an old So if you're stuck, check that too! |
This worked! Fantastic solution. |
I've encountered the very same problem and I've tried out all the answers on here and it still threw the same error for me. Turns out I had following import |
The issue for me is running npm install with sudo, it al went fine when I removed the .lock files and node modules, re-installed modules by just running npm install |
The main culprit was: '.babelrc' I had created a custom one to work with styled components. In doing so, I had 'disrupted' the 'Gatsby flow'.' The fix was to make sure I had this in '.babelrc': "presets": [
[
"babel-preset-gatsby",
{
"targets": {
"browsers": [
">0.25%",
"not dead"
]
}
}
]
] Well, |
@manavm1990 thanks! Exactly my very same problem, now my working {
"plugins": ["babel-plugin-styled-components", "@babel/plugin-proposal-class-properties"],
"presets": [
[
"babel-preset-gatsby",
{
"targets": {
"browsers": [">0.25%", "not dead"]
}
}
]
]
} |
Hey Guys - just to confirm - this is 100% from using react-styled-components & perhaps sass as well - im using sass so I had to deal w that too - watch the node-sass version you're runing b it tries to run ^5.0.0 but it should be ^4.0.0 make sure you add
|
I'm having the same problem. It's specific to a css file and if I remove reference to the file, the compilation works. The css file though, has worked in the past and has not been modified. I'm getting an error URIERROR: URI Malformed but the line and column referenced in the error is just the } character and my IDE (php storm) is not showing any errors. |
My fix :) |
updatet a eslint devDependencie with |
Hi, for those still looking for a fix for that issue, and after trying 300000 solutions, what worked for me is to "yarn", let yarn install the yarn.lock, then gatsby develop again. Sounds like yarn is a prerequisite after all... |
I had the same issue, but after some updates to the yarn.lock file, I got success CI build: I think this happen with babel plugin - maybe exist not compatible patch version with gatsby |
Description
gatsby develop
doesn't work because of an error#98123
from Webpack.Steps to reproduce
cd
into that reponpm install
gatsby develop
Expected result
Development server should start
Actual result
I get this output:
Environment
gatsby info --clipboard
(I'm running Ubuntu in WSL):Additionnally, my
package.json
:The text was updated successfully, but these errors were encountered: