Giter VIP home page Giter VIP logo

Comments (5)

thanhduyvo avatar thanhduyvo commented on September 24, 2024 7

This worked for me:
In tsconfig.json, add "allowSyntheticDefaultImports": true to compilerOptions

from aws-crt-nodejs.

tuscaonline avatar tuscaonline commented on September 24, 2024

i have the same issue in angular 12
Can you update the aws-crt to have defaut export.
So we can allowSyntheticDefaultImports to false

from aws-crt-nodejs.

FossPrime avatar FossPrime commented on September 24, 2024

One does not simply update to have a default export...

the way to do that would be subpath exports... but that blocks access to any undefined entrypoints, so it's technically a breaking change.

With typescript 4.5 this should start to become less of an issue as TS can use the moduleLoader in node with compilerOptions.module: node12

from aws-crt-nodejs.

bretambrose avatar bretambrose commented on September 24, 2024

I am not able to repro using more modern versions of typescript; closing absent more up-to-date repro or concerns.

from aws-crt-nodejs.

pinko-fowle avatar pinko-fowle commented on September 24, 2024

I'm experiencing this now, with typescript 5.4.5. I've tried the tsconfig.json remedies suggested and more: compilerOptions.module: "nodenext", compilerOptions.allowSyntheticDefaultImports: true, and a variety of other things. Nothing has fixed this.

I would like to be able to use aws-crt-nodejs. Please reopen, @bretambrose.

from aws-crt-nodejs.

Related Issues (20)

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.