-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Description
Getting Cors error messages in console.
I believe that the problem origin is a mismatch between socket.io versions (2.3.0 and 2.4.0). Using yarn resolutions solves the issue.
Error is similar to described here
Steps to reproduce
npx gatsby new socket-error
cd socket-error
npm update
npm start
Repository for reroduction
Expected result
No "CORS error" in development
Actual result
Misleading "CORS error"
Environment
System:
OS: Linux 4.15 Linux Mint 19.2 (Tina)
CPU: (4) x64 Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 14.3.0 - ~/.nvm/versions/node/v14.3.0/bin/node
Yarn: 1.22.4 - ~/.nvm/versions/node/v14.3.0/bin/yarn
npm: 6.14.10 - ~/.nvm/versions/node/v14.3.0/bin/npm
Languages:
Python: 2.7.17 - /usr/bin/python
Browsers:
Chrome: 87.0.4280.88
Firefox: 84.0.1
npmPackages:
gatsby: ^2.30.0 => 2.30.0
gatsby-image: ^2.9.0 => 2.9.0
gatsby-plugin-manifest: ^2.10.0 => 2.10.0
gatsby-plugin-offline: ^3.8.0 => 3.8.0
gatsby-plugin-react-helmet: ^3.8.0 => 3.8.0
gatsby-plugin-sharp: ^2.12.0 => 2.12.0
gatsby-source-filesystem: ^2.9.0 => 2.9.0
gatsby-transformer-sharp: ^2.10.0 => 2.10.0
npmGlobalPackages:
gatsby-cli: 2.16.2