Giter VIP home page Giter VIP logo

Comments (7)

yimingjfe avatar yimingjfe commented on September 25, 2024

Could you provide the project? Because we don't know which tsconfig from @total-typescript/tsconfig you are using, and is app-tools or module-tools used in the project?

from modern.js.

kripod avatar kripod commented on September 25, 2024

Thanks for your response!

Unfortunately, I can’t provide the project itself, as it’s a private one. This is the TSConfig I’m using.

from modern.js.

yimingjfe avatar yimingjfe commented on September 25, 2024

Thanks for your response!

Unfortunately, I can’t provide the project itself, as it’s a private one. This is the TSConfig I’m using.

Understand, what library are you using? @modern-js/app-tools or @modern-js/module-tools?

from modern.js.

kripod avatar kripod commented on September 25, 2024

@modern-js/module-tools, but I also gave Vite’s library mode a go in the meantime and sticked with it for the time being.

from modern.js.

yimingjfe avatar yimingjfe commented on September 25, 2024

I created a project as described to try to reproduce the problem, but it didn't reproduce the problem.

from modern.js.

kripod avatar kripod commented on September 25, 2024

Thanks for creating that!

I forgot to mention I had 'npm-component-es2017' configured as the buildPreset in modern.config.ts. Running your project with that change results in a reproduction.

from modern.js.

fi3ework avatar fi3ework commented on September 25, 2024

Thanks for creating that!

I forgot to mention I had 'npm-component-es2017' configured as the buildPreset in modern.config.ts. Running your project with that change results in a reproduction.

Can't reproduce the error even adding 'npm-componnet-es2017', the error seems quite like a pure TypeScript misconfiguration, could you check your tsconfig by refering https://stackoverflow.com/a/48798945/8063488.

from modern.js.

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.