Closed pankaj-ch closed 1 year ago
I have the same error, please figure out
We are working on solving this - proposed changes (still in progress) can be found in https://github.com/gatsbyjs/gatsby/pull/37257
Fixed in gatsby@5.3.2
I am still experience the same issue after upgrading all the packages to 5.3.1
. I already wiped node_modules
directory and run yarn install
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
Binaries:
Node: 18.12.1 - E:\Program Files\nodejs\node.EXE
Yarn: 3.2.3 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.2.0 - E:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (108.0.1462.46)
npmPackages:
gatsby: ^5.3.1 => 5.3.1
gatsby-plugin-canonical-urls: ^5.3.0 => 5.3.0
gatsby-plugin-google-tagmanager: ^5.3.1 => 5.3.1
gatsby-plugin-image: ^3.3.1 => 3.3.1
gatsby-plugin-manifest: ^5.3.1 => 5.3.1
gatsby-plugin-no-sourcemaps: ^5.3.0 => 5.3.0
gatsby-plugin-offline: ^6.3.1 => 6.3.1
gatsby-plugin-purgecss: ^6.1.2 => 6.1.2
gatsby-plugin-robots-txt: ^1.8.0 => 1.8.0
gatsby-plugin-sass: ^6.3.1 => 6.3.1
gatsby-plugin-sharp: ^5.3.1 => 5.3.1
gatsby-plugin-sitemap: ^6.3.1 => 6.3.1
gatsby-source-filesystem: ^5.3.1 => 5.3.1
gatsby-source-shopify: ^8.3.1 => 8.3.1
gatsby-transformer-json: ^5.3.0 => 5.3.0
gatsby-transformer-sharp: ^5.3.1 => 5.3.1
npmGlobalPackages:
gatsby-cli: 5.3.1
EDIT: working with the new release gatsby@5.3.2
.
Hey @lezan,
This was actually fixed in 5.3.2
not 5.3.1
After uprading to 5.3.2
I am getting a couples of warnings (never seen before):
warn [gatsby-plugin-image] Could not read image data file "E:\...\.cache\caches\gatsby-plugin-image\1115632934.json".
This may mean that the images in "E:\...\src\components\home\SectionCustomMap.jsx" were not processed.
Please ensure that your gatsby version is at least 2.24.78.
warn [gatsby-plugin-image] No data found for image "../../images/home/map-request.png"
Hope to give you more details soon.
EDIT: in the SectionCustomMap.jsx
component (mentioned by warning) I am using StaticImage
component from gatsby-plugin-image
.
Like that
<StaticImage
src="../../images/home/map-request.png"
alt="custom map request"
placeholder="blurred"
layout="constrained"
width={1000}
/>
What happens when you run gatsby clean
and try again?
What happens when you run
gatsby clean
and try again?
Same issue. I already tried a wiped of node_modules
, yarn install
, yarn clean
and then yarn develop
. Same outcome. I also tried to switch from relative path to absolute path, just in case but not.
I am preparing a repo.
@lezan no need, we can reproduce and will have a fix
PR is up #37262
Can I ask when you think it will be published in a minor release?
Published in
- gatsby-plugin-image@3.3.2
- gatsby-plugin-sharp@5.3.2
- gatsby-source-shopify@8.3.2
- gatsby-source-wordpress@7.3.2
- gatsby-transformer-sqip@5.3.2
Preliminary Checks
Description
On the Windows 11 platform with the node.js 18.x. The
$ gatsby develop
command is throwing an error.Reproduction Link
https://github.com/pankaj-ch/gatsby5.3-windows-issue
Steps to Reproduce
On Windows OS
$ gatsby develop
; ...Expected Result
It should be able to start the dev server without any errors. On Linux, it is working as expected.
Actual Result
The
gatsby develop
command throws an error:On Windows, absolute paths must be valid file://
.Asking to append
file:///
in front of the absolute path. (Example: "c:/path/to/repo" -> "file:///c:/path/to/repo")Environment
Config Flags
No response