GithubHelp home page GithubHelp logo

Comments (12)

michaltalaga avatar michaltalaga commented on May 19, 2024 1

narrowed it down to:
https://github.com/michaltalaga/nestjs-cli-i18n-issue

git clone
npm install // this will use "@nestjs/cli": "10.2.0",
npm run start:dev

it will fail

git clone
// change to "@nestjs/cli": "10.1.18",
npm install
npm run start:dev

it will work

from nest-cli.

michaltalaga avatar michaltalaga commented on May 19, 2024 1

to recap:

starting in version 10.2.0 following nest-cli.json fails on windows

{
  "language": "ts",
  "collection": "@nestjs/schematics",
  "sourceRoot": "src",
  "compilerOptions": {
    "assets": [
      "**/*.html",
      "**/*.otf",
      "i18n/**/*",
      "**/*.json"
    ]
  }
}

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

Please provide a minimum reproduction repository. You can start one by running npm init nest in your terminal

why reproductions are required

from nest-cli.

michaltalaga avatar michaltalaga commented on May 19, 2024

further investigation shows breaking change was introduced in
https://github.com/nestjs/nest-cli/releases/tag/10.2.0

from nest-cli.

michaltalaga avatar michaltalaga commented on May 19, 2024

may be a red herring but it has something to do with nest-cli.json

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

I just tested your repository with both versions and got the same output:

image

so that might be related with Windows. I tested on linux

from nest-cli.

michaltalaga avatar michaltalaga commented on May 19, 2024

that is possible. it worked till 10.1.18 - no issues tho

if I use the default nest-cli.json
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}
it breaks even on 10.1.18

so something around those options must be causing the problem
is there a way I can do verbose logging maybe?

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

yeah, now I got that error

Error: ENOENT: no such file or directory, scandir '/tmp/nestjs-cli-i18n-issue/dist/i18n/'

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

but it looks like to be related with nestjs-i18n package or due to missing assets (which is expected due to your nest cli config)

unless you manage to find a working version of @nestjs/cli, of course

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

just found this: toonvanstrijp/nestjs-i18n#96

isn't the same thing?

from nest-cli.

michaltalaga avatar michaltalaga commented on May 19, 2024

tried out. no luck

from nest-cli.

micalevisk avatar micalevisk commented on May 19, 2024

to recap, it works when you have that assets as in your repository, in your nest-cli.json?

from nest-cli.

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.