Comments (5)
the only error I found is when I run ng run my-project:server
because there is types: [ 'node']
in the tsconfig.server.json file so it conflicts the exact same way.
I solved it by adding "skipLibCheck": true,
in the compilerOptions of the tsconfig.server.json file.
Also, I think tsc --noEmit --skipLibCheck && eslint . --ext js,ts --quiet --fix
is better than specifying the types
from ngx-env.
Not sure what you mean.
In my package.json I have:
"@types/jasmine": "3.10.2",
"@types/luxon": "2.0.7",
"@types/node": "16.11.10",
So in tsconfig.json I tried to force jasmin and luxon:
"types": ["luxon", "jasmine"],
but it didn't solve the problem.
BUT if I declare the types directly in the cli args, it seems to do the trick 🥳
tsc --noEmit --types jasmine,luxon && eslint . --ext js,ts --fix
It will do for now.
But if you have a cleaner solution let me know!
Thanks.
from ngx-env.
Thanks for reporting that @stephane-tessier.
Could you please confirm that you don't have any issues with type checking on your editor nor when using CLI commands (ng serve...)?
from ngx-env.
Yes, I can confirm that. Everything works fine except the tsc
cli
from ngx-env.
The only way I see to make it work with tsc is to update the tsconfig files generated by the CLI, something like types: []
in tsconfig.json
but not sure if that's the best/ a viable solution.
from ngx-env.
Related Issues (20)
- Multiple env files log correctly but have a different effect HOT 4
- ng serve does not detect file changes automatically HOT 2
- Replace variables on pre-rendered pages HOT 4
- Design a logo
- @ngx-env not loading variables HOT 6
- Schema validation failed on `ng serve` HOT 7
- @ngx-env/builder Mistargets File Path for index.server.html. ( Nx + Angular ) monorepo HOT 4
- Add browser-esbuild builder HOT 2
- how to apply Env Vars to multiple npm scripts HOT 3
- @ngx-env not working with `localize` option in SSR HOT 1
- ng extract-i18n does not work properly with ESbuild HOT 8
- Broken nx demo link HOT 1
- Angular Errors are swallowed with esbuild on the console. HOT 2
- Replace .env file after build HOT 6
- module parse filed error when use process object (Angular + Nx) HOT 2
- ERROR TypeError: import.meta.env is undefined - not being replaced when building? HOT 1
- Environment files: printed twice
- runtime: true fail HOT 1
- Loading Priorities not working as documented with multiple files scenario: .env .secrets HOT 2
- Compatibility of @ngx-env/builder with Angular 18 HOT 21
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 ngx-env.