-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Due to issue with dependency resolving, you might end up a different version of prettier in project's node_modules and node_modules/newspack-scripts/node_modules.
To fix this and make newspack-scripts use to "root" version of prettier, remove the offending prettier version in a postinstall hook script:
"postinstall": "rm -rf node_modules/newspack-scripts/node_modules/prettier"This might be caused by version resolving being thrown off by aliasing prettier to wp-prettier as npm:[email protected].
Technically it seems like the overrides option should take care of that, but I did not have any luck with using it.
Metadata
Metadata
Assignees
Labels
No labels