Comments (9)
from kkt.
TypeError: Cannot read property 'javascript' of undefined
webpack-contrib/terser-webpack-plugin#339
from kkt.
from kkt.
from kkt.
- uiwjs/react-codemirror@02ed82e
- uiwjs/react-heat-map@bd4d00b
- uiwjs/react-codesandbox@e9d1c02
- uiwjs/react-code-preview@4bd10bf
- jaywcjlove/validator.js@d5710ed
- kktjs/kkt-codesandbox-tamplate@0b3a56f
⚠️ 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)/;
}
}
// ⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡⇡
}
Footnotes
from kkt.
> kkt build --app-src ./website
Creating an optimized production build...
Failed to compile.
Error: true is not a PostCSS plugin
at runMicrotasks (<anonymous>)
- chore: add package-lock.json file. uiwjs/react-code-preview@700567d
from kkt.
Module not found: Error: Can't resolve 'path' in '/home/runner/work/react-amap/react-amap/node_modules/@uiw/react-code-preview/node_modules/@babel/core/lib/transformation'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
https://github.com/uiwjs/react-amap/runs/4749457776?check_suite_focus=true
from kkt.
Creating an optimized production build...
Compiled with warnings.
./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression
./node_modules/@babel/standalone/babel.js
Critical dependency: the request of a dependency is an expression
临时解决方案
$ CI=false npm run doc
module.exports = {
//...
module: {
exprContextCritical: true,
},
};
- https://webpack.js.org/configuration/module/#module-contexts
- https://stackoverflow.com/a/65857316/1334703
from kkt.
KKT:BUILD:ERROR: TypeError: MiniCssExtractPlugin is not a constructor
at createWebpackConfig (/home/runner/work/react-code-preview/react-code-preview/node_modules/react-scripts/config/webpack.config.js:664:9)
at _callee$ (/home/runner/work/react-code-preview/react-code-preview/node_modules/kkt/src/scripts/build.ts:31:29)
at tryCatch (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:63:40)
at Generator.invoke [as _invoke] (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:294:22)
at Generator.next (/home/runner/work/react-code-preview/react-code-preview/node_modules/regenerator-runtime/runtime.js:119:21)
at asyncGeneratorStep (/home/runner/work/react-code-preview/react-code-preview/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/home/runner/work/react-code-preview/react-code-preview/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
npm i [email protected] -D
from kkt.
Related Issues (20)
- Migrate from kkt 5.x to 6.x HOT 1
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- Fix: BrowserslistError: Unknown browser query `android all` HOT 6
- lerna bootstrap --hoist doesn't work with create-react-app 5
- Build load *module.less, shows resolve-url-loader warning HOT 2
- Failed to parse source map HOT 1
- Error: true is not a PostCSS plugin
- sourceMap source file does not exist HOT 3
- Startup service stuck
- Error: You forgot to add 'mini-css-extract-plugin' plugin
- Critical dependency: the request of a dependency is an expression HOT 2
- TypeError: MiniCssExtractPlugin is not a constructor HOT 1
- WARNING in DefinePlugin Conflicting values for 'process.env.NODE_ENV' HOT 1
- Error: Cannot find module 'ajv/dist/compile/codegen' HOT 1
- @kkt/ncc: $RefreshSig$ is not defined HOT 1
- 配置加载使用 proload/cosmiconfig 替换 HOT 1
- BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default
- Failed to parse source map from
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kkt.