yinshurman opened a new issue, #2917:
URL: https://github.com/apache/apisix-dashboard/issues/2917
### Issue description
when i download the Dockerfile and run ` docker build -t api:v1 .
--build-arg ENABLE_PROXY=true --build-arg APISIX_DASHBOARD_VERSION=v3.0 ` ,
it dosen't work !
```
✖ Webpack
Compiled with some errors in 2.95m
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
ERROR Failed to compile with 37 errors
9:22:19 AM
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useCallback' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useCallback' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useCallback' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useEffect' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useState' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useState' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useState' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useState' from non EcmaScript module (only
default export is available)
error in ./node_modules/@monaco-editor/react/dist/index.mjs
Can't import the named export 'useState' from non EcmaScript module (only
default export is available)
Child
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 66:8-10
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 240:9-11
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 438:9-11
Can't import the named export 'memo' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 196:10-12
Can't import the named export 'useCallback' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 208:10-12
Can't import the named export 'useCallback' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 372:10-12
Can't import the named export 'useCallback' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 70:2-4
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 79:2-4
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 215:2-4
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 217:11-13
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 270:9-11
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 386:2-3
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 388:11-12
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 390:32-33
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 396:14-15
Can't import the named export 'useEffect' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 78:10-12
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 142:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 143:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 144:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 145:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 146:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 147:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 269:10-12
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 322:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 323:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 324:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 325:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 326:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 327:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 328:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 330:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 331:10-11
Can't import the named export 'useRef' from non EcmaScript module (only
default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 134:12-14
Can't import the named export 'useState' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 138:13-15
Can't import the named export 'useState' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 245:12-14
Can't import the named export 'useState' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 314:12-14
Can't import the named export 'useState' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
ERROR in ./node_modules/@monaco-editor/react/dist/index.mjs 318:13-15
Can't import the named export 'useState' from non EcmaScript module
(only default export is available)
@ ./src/global.tsx
@ ./src/.umi-production/umi.ts
@ multi ./src/.umi-production/umi.ts
null
info 如果你需要进交流群,请访问 https://fb.umijs.org
build failed
Error: build failed
at /web/node_modules/@umijs/bundler-webpack/lib/index.js:177:29
at finalCallback
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:108196:12)
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:108219:6
at done
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:67212:13)
at runCompilers
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:108123:48)
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:108130:7
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:108212:7
at finalCallback
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:98589:39)
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:98605:13
at AsyncSeriesHook.eval [as callAsync] (eval at create
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:147581:10),
<anonymous>:51:1)
at AsyncSeriesHook.lazyCompileHook
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:147518:20)
at onCompiled
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:98603:21)
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:99013:15
at AsyncSeriesHook.eval [as callAsync] (eval at create
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:147581:10),
<anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook
(/web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:147518:20)
at /web/node_modules/@umijs/deps/compiled/webpack/4/bundle4.js:99010:31
info 如果你需要进交流群,请访问 https://fb.umijs.org
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this
command.
```
### Expected behavior
docker build should work
### How to Reproduce
1. get the Dockerfile of master branch
2. run ` docker build -t api:v1 . --build-arg ENABLE_PROXY=true --build-arg
APISIX_DASHBOARD_VERSION=v3.0`
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`): docker on debian 11
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`):
- apisix-dashboard version, if have: 3.0
- Browser version, if have:
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]