Comments (9)
是用 molecule 的脚手架初始化的仓库么?看一下 @types/react
的版本是不是不是 18.x 的
from molecule.
是用 molecule 的脚手架初始化的仓库么?看一下
@types/react
的版本是不是不是 18.x 的
是18.x。使用的yarn create @dtinsight/
命令
from molecule.
删除 node_modules 和 .lock 文件,重装一下依赖试试
from molecule.
删除 node_modules 和 .lock 文件,重装一下依赖试试
重新安装依赖了也不行,项目我也重装过很多遍。我觉得可能是TS的问题,把App.tsx
修改成App.jsx
在启动的时候不经过编译就能启动成功。不知道是TS版本过高原因还是什么?我全局安装TS版本是最新的5.2.2;但项目中自带的是4.4。我不知道启动的时候编译的版本会选择哪个?我问gpt说是会选择项目中的版本。
from molecule.
from molecule.
我不知道启动的时候编译的版本会选择哪个
VSCode 做 typescript 的类型检查的时候,会用 VSCode 的版本,这个可以打开一个 .tsx 文件,然后看右下角 TypeScript JSX 边上的 {}
,会显示当前版本。
然后启动项目的时候,编译用的是项目里的版本。我看这个报错应该是类型不兼容导致的
from molecule.
可以在 package.json 中通过resolutions
字段,强制指定 react 相关类型包的版本试试,比如
"resolutions": {
"@types/react": "xxx",
"@types/react-dom": "xxx",
},
from molecule.
难受,我使用pnpm也不得行。
这是我的本地代码:https://github.com/resetsix/ide
from molecule.
可以在 package.json 中通过
resolutions
字段,强制指定 react 相关类型包的版本试试,比如"resolutions": { "@types/react": "xxx", "@types/react-dom": "xxx", },
好嘞 我试试。麻烦了大佬 感谢感谢
from molecule.
Related Issues (20)
- bug: 无法将选中的文字拖拽到编辑器器内 HOT 3
- bug: cannot set properties of undefined (setting 'apex') HOT 3
- After pressing the item in the sidebar, 'molecule.editor.open()' will run. HOT 5
- 如果需要支持 git 版本控制,该怎么做呢? HOT 1
- Molecule 2.0 TODO List HOT 6
- notification menuBar
- 请问molecule支持自定义FolderTree文件图标吗?不想用vscode原生的icon HOT 10
- bug: 在ActivityBar之间来回切换,Sidebar内容卸载不及时导致出现残影 HOT 9
- bug: activityBar图标点击不灵敏
- MenuBar是否支持渲染自定义组件?比如一个Select选择框 HOT 2
- 怎么在自定义的css中引入Theme的颜色变量
- bug: Tabs组件的renderPane失效 HOT 4
- 提示用户保存时,关闭 editor tab 标签页 tab 没有关闭成功 HOT 6
- 请问 Editor ContextMenu 支持自定义右键菜单吗? HOT 4
- 编辑器的标签页 Editor tab 如何判断左/右侧是否还有标签页呢? HOT 2
- 怎么更新IEditorTab中的文本内容 HOT 4
- vscode插件市场支持 HOT 1
- 向molecule.editor.editorInstance中注册事件 HOT 1
- [bug]: updateTab not update tab's value which is not current tab
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 molecule.