When trying to start Storybook with a nuxeo-elements fresh installation, we are presented with the following error:
ERROR in ../node_modules/@open-wc/scoped-elements/src/Cache.js 22:51 Module parse failed: Unexpected token (22:51) File was processed with these loaders: * ../node_modules/@open-wc/webpack-import-meta-loader/webpack-import-meta-loader.js You may need an additional loader to handle the result of these loaders. | */ | has(key) { > return !!(this._cache.has(key) || this._parent?._cache.has(key)); | } | @ ../node_modules/@open-wc/scoped-elements/src/ScopedElementsMixin.js 4:0-35 33:32-37 53:28-33 @ ../node_modules/@open-wc/scoped-elements/index.js @ ../node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js @ ../node_modules/@open-wc/testing-helpers/src/litFixture.js @ ../node_modules/@open-wc/testing-helpers/index.js @ ../testing-helpers/index.js @ ./.storybook/config.js @ multi ../node_modules/@storybook/core/dist/server/common/polyfills.js ../node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js ../node_modules/webpack-hot-middleware/client.js?reload=true&quiet=true
We'll lock it to the previous version (1.6.2) until we discover what is causing the problem.
- is related to
-
ELEMENTS-1267 Unlock @open-wc/testing-helpers at Storybook
- Resolved
- Is referenced in