#build-storybook failing after updating "@storybook/addon-links" to version 7.4.1 from 7.3.2

1 messages · Page 1 of 1 (latest)

sick bobcat
#

this looks real odd to me. have you had any issues with dependentbot merges in the past? if remove node_modules and repackage it, does that help?

midnight haven
#

have you had any issues with dependentbot merges in the past?

Not anything of this manner. I can try removing node_modules and giving that a shot, but the issue first started showing up in our CI. That’s how we found out about it.
Really bizarre that switching to version 7.3.2 works just fine but anything 7.4.x breaks like this.

midnight haven
#

@sick bobcat tried removing node_modules and repackaging it, no luck still. Same error -

Module not found: Error: Can't resolve '@storybook/core-events/preview-errors' in '<...>/node_modules/@storybook/preview-api/dist'
sick bobcat
#

thanks for trying.
i've been reading in other issues that 7.4.1 may be problematic. would you mind trying 7.4.2 (just released)

midnight haven
#

just saw that 7.4.2 was released earlier today, I'll try updating addon-actions, addon-links and core-events all to 7.4.2

#

unfortunately, same error.
here's all the relevant deps in case you see anything wrong -

 "@storybook/addon-actions": "^7.4.2",
 "@storybook/addon-essentials": "^6.5.16",
 "@storybook/addon-links": "^7.4.2",
 "@storybook/builder-webpack5": "^6.5.16",
 "@storybook/core-events": "^7.4.2",
 "@storybook/manager-webpack5": "^6.5.16",
 "@storybook/react": "^6.5.16",
#

wondering if it might be due to the fact that some of these deps are on version 6 and some are on version 7