Comments (8)
@erikash @kamilmysliwiec @sebas-deedee, I found temporary solution: In .babelrc
(or babel.config.js (or .json)) need to change "presets": ["@babel/preset-env"]
to "presets": [["@babel/preset-env", { "targets": { "node": "current" } }]]
The point is that JS, unlike TS, does not perceive "compilerOptions", which leads to an attempt of interaction between ES5 and ES6 code
from javascript-starter.
I've started a project using the typescript-starter
and didn't encounter this issue.
from javascript-starter.
Same issue here with babel... any update?
from javascript-starter.
Please, provide a minimal repository which reproduces your issue.
from javascript-starter.
@kamilmysliwiec please take a look on this repo:
https://github.com/sebas-deedee/project-mercury-api
This repo only have the code example for authentication and the mentioned problem.
from javascript-starter.
Any update @kamilmysliwiec ?
from javascript-starter.
Nestjs no longer supports JS. TS only
Please correct the support information on the official website
from javascript-starter.
Hi, I'm running into the exact same error but my project was set up differently so not sure if relevant but I'm hoping there is a workaround.
I set up a NativeScript shared project with Angular and then used the NextJS schematic to convert the project into an Angular Universal project. After adding the passport
dependency and a local strategy described in the docs I ran into this error.
My tsconfig.json
shows the target
is set to es5
and changing it to es6
or others seems to cause other compilation issues. Not even sure if NativeScript/Angular is compatible with NextJS though. Any tips would be much appreciated 🙏
from javascript-starter.
Related Issues (11)
- Not working HOT 1
- "@ complie error HOT 1
- nodemon not working HOT 2
- How to use @Param in this project? HOT 1
- build / transpilation process HOT 2
- Not working out of the box with @nestjs/mongoose HOT 1
- How to build for production HOT 2
- npm install not adding all modules HOT 1
- Plz add an "babel-plugin-parameter-decorator" HOT 1
- javascript? HOT 2
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 javascript-starter.