bayesimpact / docker-react Goto Github PK
View Code? Open in Web Editor NEWBase image for Bayes dev projects using React on top of npm.
License: MIT License
Base image for Bayes dev projects using React on top of npm.
License: MIT License
Hello, I was checking the image in order to add it in an existing project but I can't run the resource due to errors.
I was testing directly from Docker and also from DDEV (a docker derivative for PHP-based projects), just like an added new service. But the image doesn't run, it returns:
> [email protected] start
> REACT_WEBPACK_ENV=dev node server.js
/usr/app/cfg/base.js:5
const imageMinSvg = require('imagemin-svgo')
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/app/node_modules/imagemin-svgo/index.js from /usr/app/cfg/base.js not supported.
Instead change the require of index.js in /usr/app/cfg/base.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/usr/app/cfg/base.js:5:21)
at Object.<anonymous> (/usr/app/cfg/dev.js:7:20)
at Object.<anonymous> (/usr/app/webpack.config.js:18:8)
at Object.<anonymous> (/usr/app/server.js:4:14) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v17.7.1
See caption:
The result is the same from Docker and from DDEV. The error seems to be new versions in some resources.
Related
Context: Linux
SO: Ubuntu 20.04.4 LTS
Docker version: Docker version 20.10.14, build a224086
Docker Compose version: docker-compose version 1.25.0
DDEV version: ddev version v1.17.7
Hello, I was checking the image in order to add it in an existing project but I can't run the resource due to errors.
I was testing directly from Docker and also from DDEV (a docker derivative for PHP-based projects), just like an added new service. But the image doesn't run, it returns:
> [email protected] start
> REACT_WEBPACK_ENV=dev node server.js
/usr/app/cfg/base.js:5
const imageMinSvg = require('imagemin-svgo')
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/app/node_modules/imagemin-svgo/index.js from /usr/app/cfg/base.js not supported.
Instead change the require of index.js in /usr/app/cfg/base.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/usr/app/cfg/base.js:5:21)
at Object.<anonymous> (/usr/app/cfg/dev.js:7:20)
at Object.<anonymous> (/usr/app/webpack.config.js:18:8)
at Object.<anonymous> (/usr/app/server.js:4:14) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v17.7.1
See caption:
The result is the same from Docker and from DDEV. The error seems to be new versions in some resources.
Related
Context: Linux
SO: Ubuntu 20.04.4 LTS
Docker version: Docker version 20.10.14, build a224086
Docker Compose version: docker-compose version 1.25.0
DDEV version: ddev version v1.17.7
Latest version of docker-react provides Node v17.3.0 version to run react app. But this version is not yet included in LTS (Long term support) by Node. Hence when using this image it causes below error on running react build command.
{
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.