-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
- Failed to parse source map from #446
- uiwjs/react-codesandbox@e9d1c02
- uiwjs/react-code-preview@4bd10bf
⚠️ sourceMap source file does not exist. 1
WARNING in ./node_modules/codesandbox-import-utils/lib/api/define.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map
from '/git-project/@uiw/react/react-codesandbox/node_modules/codesandbox-import-utils/src/api/define.ts'
file: Error: ENOENT: no such file or directory,
open '/git-project/@uiw/react/react-codesandbox/node_modules/codesandbox-import-utils/src/api/define.ts'
⚠️ Do not need the following configuration, upgradekkt
tov7.0.3+
.
export default (conf: Configuration, env: 'development' | 'production', options: LoaderConfOptions) => {
// ....
// ⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣⇣
if (conf.module && conf.module.rules && conf.module.rules[0]) {
const rules = conf.module.rules[0];
if (typeof rules === 'object' && typeof rules.loader === 'string' && /source-map-loader/.test(rules.loader)) {
;(conf.module.rules[0] as any).exclude = /((@babel(?:\/|\\{1,2})runtime)|codesandbox-import-utils)/;
}
}
// ⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡
}
Originally posted by @jaywcjlove in #198 (comment)
Footnotes
Metadata
Metadata
Assignees
Labels
No labels