GithubHelp home page GithubHelp logo

Comments (8)

chakaponi avatar chakaponi commented on April 26, 2024 1

@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.

erikash avatar erikash commented on April 26, 2024

I've started a project using the typescript-starter and didn't encounter this issue.

from javascript-starter.

sebas-deedee avatar sebas-deedee commented on April 26, 2024

Same issue here with babel... any update?

from javascript-starter.

kamilmysliwiec avatar kamilmysliwiec commented on April 26, 2024

Please, provide a minimal repository which reproduces your issue.

from javascript-starter.

sebas-deedee avatar sebas-deedee commented on April 26, 2024

@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.

sebas-deedee avatar sebas-deedee commented on April 26, 2024

Any update @kamilmysliwiec ?

from javascript-starter.

chakaponi avatar chakaponi commented on April 26, 2024

Nestjs no longer supports JS. TS only
Please correct the support information on the official website

from javascript-starter.

saheljalal avatar saheljalal commented on April 26, 2024

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)

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.