grunt dev ModuleNotFoundError
- Dominant language
- JavaScript
- Stars
- 35.8k
- Forks
- 4.1k
- Avg merge
- 2d 26m
- Merged PRs (30d)
- 33
Description
grunt dev
See error
ModuleNotFoundError: Module not found: ValidationError: Invalid generator ob ject. Asset Modules Plugin has been initialized using a generator object tha t does not match the API schema.
- - generator has an unknown property 'filename'. These properties are valid:
- object { dataUrl? }
- -> Generator options for asset/inline modules.
- Compilation.js:2016
[CyberChef-master]/[webpack]/lib/Compilation.js:2016:28
- NormalModuleFactory.js:798
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:798:13
- NormalModuleFactory.js:270
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:270:22
- NormalModuleFactory.js:589
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:589:15
- NormalModuleFactory.js:116
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:116:11
- NormalModuleFactory.js:623
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:623:8
- NormalModuleFactory.js:988 NormalModuleFactory.resolveRequestArray
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:988:34
- NormalModuleFactory.js:615
[CyberChef-master]/[webpack]/lib/NormalModuleFactory.js:615:11
- Module not found: ValidationError: Invalid generator object. Asset Modules P lugin has been initialized using a generator object that does not match the API schema.
- - generator has an unknown property 'filename'. These properties are valid:
- object { dataUrl? }
- -> Generator options for asset/inline modules.
- ModuleNotFoundError: Module not found: ValidationError: Invalid generator ob ject. Asset Modules Plugin has been initialized using a generator object tha t does not match the API schema.
Contributor guide
Research direction
Start by reproducing the error with `grunt dev` and inspect the webpack configuration used by that task. Trace the Asset Modules Plugin setup and determine why the `generator.filename` property is rejected; done means the development command completes without this validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100