Coder Social home page Coder Social logo

Comments (6)

pmb0 avatar pmb0 commented on June 22, 2024 1

However, it was not my intention that this only runs with new / recent Node.js versions. I will adjust the ts transpiler settings.

from nestjs-unleash.

Mistic92 avatar Mistic92 commented on June 22, 2024

Hm, locally I was running node 14 where in Docker I had node 12. After changing to node14 in docker file it's working.

from nestjs-unleash.

nllahat avatar nllahat commented on June 22, 2024

@pmb0 I'm having this issue too (running locally. node version v14.16.0. nest version v7.6.7).
Any idea what is wrong ?

from nestjs-unleash.

pmb0 avatar pmb0 commented on June 22, 2024

Hi @nllahat , the Nullish coalescing operator (??) needs Node.js ^14.0.0. are you sure you use v14?

from nestjs-unleash.

nllahat avatar nllahat commented on June 22, 2024

@pmb0 sorry. my mistake. I ran it with node 13.4.

from nestjs-unleash.

Anthony07M avatar Anthony07M commented on June 22, 2024

Olá, estou com o mesmo problema.

app_1  | /home/node/app/node_modules/rimraf/dist/cjs/src/ignore-enoent.js:15
app_1  |         if (er?.code !== 'ENOENT') {
app_1  |                ^
app_1  | 
app_1  | SyntaxError: Unexpected token '.'
app_1  |     at Module._compile (internal/modules/cjs/loader.js:895:18)
app_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
app_1  |     at Module.load (internal/modules/cjs/loader.js:815:32)
app_1  |     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
app_1  |     at Module.require (internal/modules/cjs/loader.js:852:19)
app_1  |     at require (internal/modules/cjs/helpers.js:74:18)
app_1  |     at Object.<anonymous> (/home/node/app/node_modules/rimraf/dist/cjs/src/rimraf-posix.js:14:28)
app_1  |     at Module._compile (internal/modules/cjs/loader.js:959:30)
app_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
app_1  |     at Module.load (internal/modules/cjs/loader.js:815:32)
app_1  | npm ERR! code ELIFECYCLE
app_1  | npm ERR! errno 1
app_1  | npm ERR! [email protected] start:dev: `nest start --watch`
app_1  | npm ERR! Exit status 1
app_1  | npm ERR! 
app_1  | npm ERR! Failed at the [email protected] start:dev script.
app_1  | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
app_1  | 
app_1  | npm ERR! A complete log of this run can be found in:
app_1  | npm ERR!     /home/node/.npm/_logs/2023-02-13T14_25_17_922Z-debug.log
nest-api_app_1 exited with code 1
  • Atualmente estou com o node v18.13.0

  • meu Dockerfile:

FROM node:18.14-alpine3.16

RUN apk add --no-cache bash

RUN npm install -g @nestjs/[email protected]

USER node

WORKDIR /home/node/app
  • docker-compose.yaml:
version: '3'

services:
  app: 
    build: .
    entrypoint: ./.docker/entrypoint.sh
    ports:
      - 3000:3000
    volumes:
      - .:/home/node/app

from nestjs-unleash.

Related Issues (20)

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.