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
When my webpack project (which uses source-map-loader) consumes react-promise, it consistently outputs a build warning:
WARNING in D:/<a path>/node_modules/react-promise/dist/esm/usePromise.js Module Warning (from D:/<a path>/node_modules/source-map-loader/index.js): (Emitted value instead of an instance of Error) Cannot open source file 'D:\<a path>\node_modules\react-promise\src\usePromise.ts': Error: ENOENT: no such file or directory, open 'D:\<a path>\node_modules\react-promise\src\usePromise.ts' @ ./src/index.tsx 19:40-64
Indeed usePromise.js.map includes a reference to "../../src/usePromise.ts" and usePromise.ts is not included in the react-promise package.
It seems like either that source file should be included in the package or the map file should not reference it to avoid causing the warning?
Thanks!
The text was updated successfully, but these errors were encountered:
When my webpack project (which uses source-map-loader) consumes react-promise, it consistently outputs a build warning:
WARNING in D:/<a path>/node_modules/react-promise/dist/esm/usePromise.js Module Warning (from D:/<a path>/node_modules/source-map-loader/index.js): (Emitted value instead of an instance of Error) Cannot open source file 'D:\<a path>\node_modules\react-promise\src\usePromise.ts': Error: ENOENT: no such file or directory, open 'D:\<a path>\node_modules\react-promise\src\usePromise.ts' @ ./src/index.tsx 19:40-64
Indeed
usePromise.js.map
includes a reference to"../../src/usePromise.ts"
andusePromise.ts
is not included in the react-promise package.It seems like either that source file should be included in the package or the map file should not reference it to avoid causing the warning?
Thanks!
The text was updated successfully, but these errors were encountered: