Can't build gatsby v4 site when "--ignore-optional" is used #33927
-
Preliminary Checks
DescriptionI've tried using Reproduction Linkhttps://github.com/pedrolamas/pedrolamas.com/tree/gatsby Steps to Reproduce
Expected ResultBuild succeeds! Actual ResultBuild fails...
Here's a result from github: https://github.com/pedrolamas/pedrolamas.com/runs/4165027185?check_suite_focus=true EnvironmentSystem:
OS: Windows 10 10.0.22000
CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.15 - ~\AppData\Roaming\npm\yarn.CMD
npm: 7.23.0 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 2.7.15
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (95.0.1020.44), ChromiumDev (97.0.1069.0)
npmPackages:
gatsby: ^4.1.2 => 4.1.2
gatsby-plugin-env-variables: ^2.1.0 => 2.1.0
gatsby-plugin-eslint: ^4.0.1 => 4.0.1
gatsby-plugin-feed-generator: ^2.0.5 => 2.0.5
gatsby-plugin-google-gtag: ^4.1.0 => 4.1.0
gatsby-plugin-image: ^2.1.0 => 2.1.0
gatsby-plugin-manifest: ^4.1.1 => 4.1.1
gatsby-plugin-mdx: ^3.1.1 => 3.1.1
gatsby-plugin-netlify: ^3.14.0 => 3.14.0
gatsby-plugin-offline: ^5.1.1 => 5.1.1
gatsby-plugin-react-helmet: ^5.1.0 => 5.1.0
gatsby-plugin-robots-txt: ^1.6.14 => 1.6.14
gatsby-plugin-sass: ^5.1.1 => 5.1.1
gatsby-plugin-sharp: ^4.1.1 => 4.1.1
gatsby-plugin-sitemap: ^5.1.1 => 5.1.1
gatsby-plugin-twitter: ^4.1.1 => 4.1.1
gatsby-remark-acronyms: ^1.1.4 => 1.1.4
gatsby-remark-copy-linked-files: ^5.1.0 => 5.1.0
gatsby-remark-images: ^6.1.1 => 6.1.1
gatsby-remark-responsive-iframe: ^5.1.0 => 5.1.0
gatsby-remark-smartypants: ^5.1.0 => 5.1.0
gatsby-source-filesystem: ^4.1.0 => 4.1.0
gatsby-transformer-sharp: ^4.1.0 => 4.1.0
gatsby-transformer-yaml: ^4.1.0 => 4.1.0
npmGlobalPackages:
gatsby-cli: 4.0.0 Config FlagsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The dependency is marked as optional as you can also use If you want to use the |
Beta Was this translation helpful? Give feedback.
The dependency is marked as optional as you can also use
cbor-x
instead. But by defaultmsgpackr
is used (and there's no reason to switch) so the npm package is necessary.https://github.com/DoctorEvidence/lmdb-store/blob/11ec0f24bcfed9bf1dbce80c064eec51f311a963/index.js#L211
If you want to use the
--ignore-optional
you'll have to add it to the dependencies yourself then.