Comments (7)
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.
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.
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.
@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.
I created a project as described to try to reproduce the problem, but it didn't reproduce the problem.
from modern.js.
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.
Thanks for creating that!
I forgot to mention I had
'npm-component-es2017'
configured as thebuildPreset
inmodern.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)
- [Bug]: Cannot use default import statement in modern.config.ts within esm package HOT 4
- [Bug]: 开启 `Rspress Module Doc` 功能,代码块设置 iframe,报 Can't resolve 'react/jsx-dev-runtime'
- [Feature]: 可选的集成支持以及外部模板 HOT 2
- [Bug]: 根据文档操作微前端运行失败 HOT 1
- [Bug]:使用微前端后,loader会执行多次 HOT 5
- [Bug]: When building using useContext in koa I am getting a typing error HOT 2
- [Feature]: Support OPTIONS method request for server on ModernJs HOT 1
- [Bug]: github工作流中yarnbuild 会完成打包但是无法自动退出命令行 HOT 5
- [Bug]: 微前端约定路由,切换到主应用路由后再回到子应用不再渲染 HOT 4
- [Bug]: TypeError: (0 , server_1.useContext) is not a function HOT 3
- [Bug]: 自定义 entry.tsx 时无法构建 HOT 6
- [Feature]: Types Routes HOT 3
- [Feature]: 升级 storybook v8 版本 HOT 5
- [Bug]: @modern-js/plugin-bff doesn't work with moduleResolution Bundler compiler option
- [Bug]: monorepo root dependency react version not right HOT 2
- [Feature]: Allow configuration of credentials in useFetcher submit
- [Infra]: Use renovate to automatically update outdated dependency
- Dependency Dashboard
- [Bug]: 设置server.baseUrl后本地无法预览 HOT 1
- [Feature]: 应该忽略某些通用文件如 .gitkeep
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 modern.js.