You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And that triggers a warning when I try to build the assets:
warn in ./assets/js/my-module/static-assets/ sync ^\.\/.*$
Module not found: ValidationError: Invalid generator object. Asset Modules Plugin 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.
The error message makes sense (there are no filenames for inlined assets), but I'm not passing any filename parameters to the rule. Thinking that something might be happening under the hood, I tried modifying the config manually:
Looks good, but still complains about the filename.
Then I tried writing generator directive explicitly (thinking that Webpack or Encore might be adding its own, if omitted):
I'm having an issue with asset/inline and would appreciate some help.
This is the rule I'm trying to add:
And that triggers a warning when I try to build the assets:
The error message makes sense (there are no filenames for inlined assets), but I'm not passing any
filename
parameters to the rule. Thinking that something might be happening under the hood, I tried modifying the config manually:...but that didn't help. Just as a sanity check, I console-logged that part of the config:
Looks good, but still complains about the filename.
Then I tried writing generator directive explicitly (thinking that Webpack or Encore might be adding its own, if omitted):
...to no avail. Tried on an isolated piece of code (just Webpack), worked fine there.
I can work around this and load the static assets manually using fetch, but I'm really curious to learn what did I do wrong.
The text was updated successfully, but these errors were encountered: