Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema
See original GitHub issuePreliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
ERROR
Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
- options should be one of these:
object { resourceRegExp, contextRegExp? } | object { checkResource }
Details:
* options misses the property 'resourceRegExp'. Should be:
RegExp
-> A RegExp to test the request against.
* options misses the property 'checkResource'. Should be:
function
-> A filter function for resource and context.
ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
- options should be one of these:
object { resourceRegExp, contextRegExp? } | object { checkResource }
Details:
* options misses the property 'resourceRegExp'. Should be:
RegExp
-> A RegExp to test the request against.
* options misses the property 'checkResource'. Should be:
function
-> A filter function for resource and context.
- validate.js:105 validate
[test]/[webpack]/[schema-utils]/dist/validate.js:105:11
- create-schema-validation.js:16
[test]/[webpack]/lib/util/create-schema-validation.js:16:17
- IgnorePlugin.js:28 new IgnorePlugin
[test]/[webpack]/lib/IgnorePlugin.js:28:3
- webpack-plugins.ts:16 Object.ignore
[test]/[gatsby]/src/utils/webpack-plugins.ts:16:12
- webpack-utils.ts:768 Object.moment
[test]/[gatsby]/src/utils/webpack-utils.ts:768:13
- webpack.config.js:211 getPlugins
[test]/[gatsby]/src/utils/webpack.config.js:211:15
- webpack.config.js:512 module.exports
[test]/[gatsby]/src/utils/webpack.config.js:512:14
- build-html.ts:181 buildRenderer
[test]/[gatsby]/src/commands/build-html.ts:181:18
- start-server.ts:117 createIndexHtml
[test]/[gatsby]/src/utils/start-server.ts:117:32
- start-server.ts:155 startServer
[test]/[gatsby]/src/utils/start-server.ts:155:5
- start-webpack-server.ts:44 startWebpackServer
[test]/[gatsby]/src/services/start-webpack-server.ts:44:7
Reproduction Link
No need
Steps to Reproduce
npm init gatsby(barebones installation. no selections)npm run develop
Expected Result
Opens browser local project
Actual Result
Error
Environment
System:
OS: macOS 11.5.1
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.6.1 - ~/.asdf/installs/nodejs/16.6.1/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 7.20.3 - ~/.asdf/plugins/nodejs/shims/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 93.0.4577.82
Firefox: 92.0
Safari: 14.1.2
npmPackages:
gatsby: ^3.13.0 => 3.13.0
npmGlobalPackages:
gatsby: 3.13.0
Config Flags
no. barebones project
Issue Analytics
- State:
- Created 2 years ago
- Reactions:19
- Comments:28 (2 by maintainers)
Top Results From Across the Web
webpack 5.21.2 Invalid options object. Ignore Plugin has been ...
'/code/webpack.config.js' config [webpack-cli] Invalid ; Plugin has been initialized using an options object that does not match the API ; these: ...
Read more >invalid options object. ignore plugin has been ... - You.com
Ignore Plugin has been initialized using an options object that does not match the API schema. options should be one of these: object...
Read more >Webpack has been initialized using a configuration object
Webpack has been initialized using a configuration object that does not match the API schema. - configuration.module.rules[10] has an unknown property ...
Read more >IgnorePlugin - webpack
IgnorePlugin prevents the generation of modules for import or require calls matching the regular expressions or filter functions: ...
Read more >Invalid options object. Ignore Plugin has been initialized using ...
ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fix published with 3.13.1
@pieh
works for me