Questions tagged webpack

Explore the latest questions and answers asked by our top developers.

Next JS App Dockerfile build locally but fails in Cloud Run when CI/CD

While trying to implement CI/CD in Cloud Run using a Dockerfile, it fails as if some fail were not found. I have built the same container locally with no issues. Here is my Dockerfile: NextJS version: 12.0.1 Docker: 4.4.2 # Install dependencies only when needed FROM node:16-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why […]

By Marco
Published
Categorised as docker, gcloud, google-cloud-run, next.js, webpack Tagged , , , ,

Gitub Action npm install Module not found: Error: Can’t resolve ‘./src/services/meekouapi.ts’ in ‘/usr/local/app’

I am trying deploy Excel Addin to docker image. The command npm run build:prod and docker build -t excel . in local environment works. But, it will fail with the Github action below: name: Docker Image CI For Excel on: push: tags: – ‘excel-v*’ jobs: push_to_registry: name: Push Docker image to Docker Hub runs-on: ubuntu-latest […]

Docker running amazon/aws-lambda-nodejs JSON errors

Issue: Running into this error within Docker lambda logs …ERROR Invoke Error {"errorType":"SyntaxError", "errorMessage":"Unexpected end of JSON input","stack": ["SyntaxError: Unexpected end of JSON input"," at JSON.parse (<anonymous>)"," at Runtime.handleOnce (/var/runtime/Runtime.js:67:14)"]} When using a fetch: … await fetch(url, requestOptions) .then(function (response) { if (response.ok) { return response.json(); } return false; }); Called via this simplified request […]

By theMidwest
Published
Categorised as cors, docker, lambda, node.js, webpack Tagged , , , ,

Docker running amazon/aws-lambda-nodejs Invoke errors

Issue: Running into this error within Docker lambda logs …ERROR Invoke Error {"errorType":"SyntaxError", "errorMessage":"Unexpected end of JSON input","stack": ["SyntaxError: Unexpected end of JSON input"," at JSON.parse (<anonymous>)"," at Runtime.handleOnce (/var/runtime/Runtime.js:67:14)"]} When using a fetch: … await fetch(url, requestOptions) .then(function (response) { if (response.ok) { return response.json(); } return false; }); Called via this simplified request […]

By theMidwest
Published
Categorised as cors, docker, lambda, node.js, webpack Tagged , , , ,

Docker-compose with WSL 2 React app not hot reloading on changes

My React app isn’t reloading on Docker for Windows with docker-compose and WSL2. docker-compose.yml frontend: container_name: frontend build: context: ./github-finder-app volumes: – ‘/var/app/node_modules’ – ‘./github-finder-app:/var/app’ ports: – 3000:3000 stdin_open: true environment: – CHOKIDAR_USEPOLLING=true command: npm start Dockerfile FROM node:14.9 WORKDIR /var/app COPY . . RUN npm install –only=prod EXPOSE 3000 Been trying to play around […]

Metaplex dockerized dev server crash randomly

On my MacOs I setup docker container with metaplex (more setup details are in this older separate question) development environment (webpack, react) – and when I change something in code, or not change nothing, randomly (usually after 1-2 min) following error appears: @oyster/common: 5:05:37 PM – Found 0 errors. Watching for file changes. web: Killed […]

By Kamil Kie czewski
Published
Categorised as apple-m1, docker, webpack Tagged , ,

Run webpack-dev-server inside docker container

I have a symfony project with docker and I would like to setup webpack-dev-server for hot reloading. I have a basic knowledge about docker, but I probably not know how it works deeply. In my php container I have yarn installed. My docker-compose file looks like: version: ‘3.8’ networks: nginx-php8-mysql8-node: services: nginx: build: context: docker/nginx […]

By Niki
Published
Categorised as docker, webpack, webpack-dev-server Tagged , ,

ActionController Routing Error on Rails 6 w/ Webpack and Yarn

First time configuring a production rails app with react and webpack. I am trying to understand the structure needed for webpack controlled by rails to statically serve my assets. Currently running into what may be a silly error in my webpacker.yml configuration. Greatly appreciate any help with this! Error from log/production.log after setting up pod […]

By Ryan Jones
Published
Categorised as docker, puma, reactjs, ruby-on-rails, webpack Tagged , , , ,

I am unable to run React.Js app from a docker container

i am trying to run a react.js app inside a docker container. I am using typescript, mdbootstrap template and also webpack with the reactjs app. I am able run the npm run start command and react.js application works fine.Reactjs app work perfectly outside the docker container but when i try to run docker-compose up command, […]

Webpacker compiles successfully but no output files

I am running webpacker-dev-server inside a docker container. The problem I am facing is the assets webpacker should compile do not appear in the filesystem. Webpacker outputs the following message confirming that compilation should have succeeded, and the files are found correctly. docker-webpacker-1 | [BABEL] Note: The code generator has deoptimised the styling of /app/node_modules/xlsx/xlsx.js […]

1 2 3 11

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq