Comments (12)
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.
Related Issues (20)
- Regression > Copying assets is broken on Windows devices
- Facing module unavailability error on changing the bundler to swc HOT 1
- odd behavior when the config file can't be read HOT 5
- Add remove command to delete a non-root project from monorepo and auto-update nest-cli.json HOT 2
- false-positive warning message for `@nestjs/schematics` HOT 1
- [Feature] - nestCLI option to generate Command and Events HOT 1
- Update gitignore to include more common files or folders HOT 5
- add "compilerOptions.sourceMaps" option is nest-cli-json HOT 1
- Assets only works on top level project. HOT 1
- Clean up dependencies HOT 1
- Listing all the routes/endpoints with their types and middleware in project HOT 2
- Error cause is not logged in dev:watch mode HOT 1
- broken path in build output HOT 4
- CLI not work whit PowerShell HOT 3
- Unable to upgrade to the latest version, node version is v16.20.2 HOT 1
- Add an option to skip testing and linting packages/configurations when creating a new project. HOT 2
- 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
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.