ng build
webpack
docker
:ERROR [karma-server]: UncaughtException:: filesModified.map is not a function
04 11 2020 22:16:10.106:ERROR [karma-server]: TypeError: filesModified.map is not a function
at newCallback
docker version
Client: Docker Engine - Community
Cloud integration: 1.0.1
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:00:27 2020
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.24)
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:14:20 2020
OS/Arch: windows/amd64
Experimental: false
ng serve
chunk {main} main.js, main.js.map (main) 1.86 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 649 bytes [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 168 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 339 kB [initial] [rendered]
Date: 2020-11-05T01:15:56.678Z - Hash: 579c0f85b3cc0387d4ad - Time: 42776ms
ERROR in Cannot read property 'tapAsync' of undefined
** Angular Live Development Server is listening on localhost:undefined, open your browser on http://localhost/ **
callback(err, filesModified.map(value => reverseReplacements.get(value) || value), contextModified.map(value => reverseReplacements.get(value) || value), missingModified.map(value => reverseReplacements.get(value) || value), reverseTimestamps(fileTimestamps), reverseTimestamps(contextTimestamps));
^
TypeError: filesModified.map is not a function
at newCallback
FROM node:latest as angular
WORKDIR /usr/src/app
COPY package*.json /code/package.json
RUN npm install --silent
COPY . .
RUN NPM run build
Specify port app runs on
EXPOSE 3000
docs
FROM nginx
RUN rm /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY content /usr/share/nginx/html
COPY conf /etc/nginx
#Grab the latest alpine image
FROM alpine:latest
Install python and pip
RUN apk add --no-cache --update python3 py3-pip bash
ADD ./webapp/requirements.txt /tmp/requirements.txt
Install dependencies
RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt
Add our code
ADD ./webapp /opt/webapp/
WORKDIR /opt/webapp
Expose is NOT supported by Heroku
EXPOSE 5000
Run the image as a non-root user
RUN adduser -D myuser
USER myuser
Run the app. CMD is required to run on Heroku
$PORT is set by Heroku
CMD gunicorn --bind 0.0.0.0:$PORT wsgi
version: '3'
services:
web:
build: .
command: 'nodemon -L --inspect=0.0.0.0:5858'
volumes:
- '.:/code'
ports:
- '8000:8000'
- '5858:5858'
- '4200:4200'
- '3000:3000'