Skip to content

Commit

Permalink
Update NodeJS Image Version
Browse files Browse the repository at this point in the history
Without this update the docker build fails at step:

$ webpack build
internal/modules/cjs/loader.js:628
  throw e;
  ^

Error: No valid exports main found for '/home/node_modules/colorette'
    at resolveExportsTarget (internal/modules/cjs/loader.js:625:9)
    at applyExports (internal/modules/cjs/loader.js:502:14)
    at resolveExports (internal/modules/cjs/loader.js:551:12)
    at Function.Module._findPath (internal/modules/cjs/loader.js:657:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27)
    at Function.Module._load (internal/modules/cjs/loader.js:855:27)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (/home/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/home/node_modules/webpack-cli/lib/webpack-cli.js:10:66)
    at Module._compile (/home/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) {
  code: 'MODULE_NOT_FOUND'
}
error Command failed with exit code 1.

It succeded when I updated to the 14.5 version.

facebook/create-react-app#9273
  • Loading branch information
ximbal authored Mar 11, 2021
1 parent 2333796 commit 09a556a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# docker stop mermaid-live-editor


FROM node:13.6.0-alpine as mermaid-live-editor-builder
FROM node:14.5.0-alpine as mermaid-live-editor-builder
COPY --chown=node:node . /home
WORKDIR /home
RUN yarn install
Expand Down

0 comments on commit 09a556a

Please sign in to comment.