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
In a stock, non-ejected, create-react-app scaffolded application, using the @webcomponents/scoped-custom-element-registry polyfill package results in sourcemap warnings during the build step potentially caused by the sourcemaps being malformed?
Example
The warning produce is similar to:
WARNING in ./node_modules/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\<APP DIRECTORY>\node_modules\@webcomponents\scoped-custom-element-registry\scoped-custom-element-registry.min.js.map' file: Error: ENOENT: no such file or directory, open 'C:\<APP DIRECTORY>\node_modules\@webcomponents\scoped-custom-element-registry\scoped-custom-element-registry.min.js.map'
The beginning of the generated sourcemap for the polyfill is:
IIRC, those weird bracketed source paths are placed there by Closure to represent its injected polyfills. I was messing around with updating some dependencies a while ago and I believe a newer version of Closure fixed this.
i haven’t seen an error in a long time, and we’ve dumped create-react-app like the rest of the react world has, so i’d call it good for now and re-open if something else comes up?
Description
In a stock, non-ejected,
create-react-app
scaffolded application, using the@webcomponents/scoped-custom-element-registry
polyfill package results in sourcemap warnings during the build step potentially caused by the sourcemaps being malformed?Example
The warning produce is similar to:
The beginning of the generated sourcemap for the polyfill is:
Steps to reproduce
create-react-app
application with Typescript@webcomponents/scoped-custom-element-registry/
npm run build
Expected behavior
No warnings are shown
Actual behavior
Warning above is shown
Version
@webcomponents/[email protected]
The text was updated successfully, but these errors were encountered: