Giter Site home page Giter Site logo

docker-react's People

Contributors

bayesimpact-bot avatar davidjguru avatar dedan avatar dependabot-preview[bot] avatar dependabot[bot] avatar doppins-bot avatar mlendale avatar pcorpet avatar zozoens31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-react's Issues

Latest version of this docer image creates webpack related issue

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'
}

Unable to run bayesimpact/react-base:latest

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:

Uploading Selection_424.png…

The result is the same from Docker and from DDEV. The error seems to be new versions in some resources.
Related

Stack

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

Unable to run bayesimpact/react-base:latest

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:

Selection_424

The result is the same from Docker and from DDEV. The error seems to be new versions in some resources.
Related

Stack

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.