Code Monkey home page Code Monkey logo

accesspointmap's People

Stargazers

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

Watchers

 avatar  avatar

Forkers

jeanpseven

accesspointmap's Issues

VSCode remote debugging error - debugger dies (this reference)

Hi, cloned the repo and had to make a series of changes to get the front-end (client app) to compile.
Note: I can provide details if need be.

Question: what is the "debug" workflow/process you are using for the front-end app?
I'm getting the following error when I try to debug the angular app through VS code:

Error:
/usr/share/nginx/html # node --inspect-brk=0.0.0.0:9229 main.js
Debugger listening on ws://0.0.0.0:9229/c10c49bc-2c46-47ee-80cb-97c20c7a52bb
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting for the debugger to disconnect...
/usr/share/nginx/html/main.js:1
(self["webpackChunkaccess_point_map"] = self["webpackChunkaccess_point_map"] || []).push([["main"],{
^

ReferenceError: self is not defined
at Object. (/usr/share/nginx/html/main.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:1082:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47

A few observations:

  1. no webpack.config that I can see
  2. had to extensively change DockerFile (see below) so that I could use 1 image that contains 'node' v14 installed so that we could remote debug once app is deployed inside container....
    // -- DockerFile code -- //
    FROM hoosin/alpine-nginx-nodejs AS build
    #see-> https://github.com/hoosin/alpine-nginx-nodejs
    #OLD: FROM node:14 AS build
    WORKDIR /usr/src/app
    COPY . .
    COPY package.json package-lock.json ./
    RUN npm install

RUN npm run ng build -- --prod --base-href /projects/accesspointmap/ --deploy-url /projects/accesspointmap/

#RUN npm run ng build -- --prod
RUN npm run ng build
COPY nginx.conf /etc/nginx/nginx.conf
#OLD: COPY --from=build /usr/src/app/dist/AccessPointMap /usr/share/nginx/html
#NEW: within the same image
#See: https://askubuntu.com/questions/86822/how-can-i-copy-the-contents-of-a-folder-to-another-folder-in-a-different-directo
RUN cp -a /usr/src/app/dist/AccessPointMap/. /usr/share/nginx/html/
WORKDIR /usr/share/nginx/html/
EXPOSE 9229

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.