Comments (13)
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.
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.
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.
further investigation shows breaking change was introduced in
https://github.com/nestjs/nest-cli/releases/tag/10.2.0
from nest-cli.
may be a red herring but it has something to do with nest-cli.json
from nest-cli.
I just tested your repository with both versions and got the same output:
so that might be related with Windows. I tested on linux
from nest-cli.
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.
yeah, now I got that error
Error: ENOENT: no such file or directory, scandir '/tmp/nestjs-cli-i18n-issue/dist/i18n/'
from nest-cli.
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.
just found this: toonvanstrijp/nestjs-i18n#96
isn't the same thing?
from nest-cli.
tried out. no luck
from nest-cli.
to recap, it works when you have that assets
as in your repository, in your nest-cli.json
?
from nest-cli.
Duplicate of #2429
from nest-cli.
Related Issues (20)
- Unable to upgrade to the latest version, node version is v16.20.2 HOT 3
- Add an option to skip testing and linting packages/configurations when creating a new project. HOT 3
- Class generator creating file inside non specified folder on Windows 11 HOT 4
- Critical Security Vulnerability in formidable version used by superagent and supertest HOT 1
- SWC: NestCLI still starts the Nest server, even TypeCheck with TSC fails. HOT 1
- npm WARN deprecated [email protected] HOT 13
- Allow to generate type declaration files with `tsc` when the builder is `swc` or to skip building in `nest start`
- paths don't resolved when building with SWC HOT 2
- Ability to use node cli parameters in nest cli commands HOT 4
- Nest CLI Project version issue HOT 1
- Add option to restart Application on Asset change HOT 2
- Remove 'source-map-support' package in favor of Nodejs built-in source mapping feature HOT 1
- [discussion] Duplicates and rename resource structure command HOT 2
- NestJS with SWC has a different behavior than with TSC on monorepos HOT 1
- aviod compilation with swc + type-checking when there are type errors HOT 2
- Faster startup with -w parameter on Windows platform in monorepo mode HOT 1
- Hidden assets are not copied HOT 2
- Unblocking TypeScript project reference builds HOT 1
- nest generate command not working on [email protected] HOT 15
- nest generate command not working on node v22.5.1 and typescript v5.5.3 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nest-cli.