引入包之后构建平台报错
Closed this issue · 6 comments
miaomiaomiaoer commented
有个引入方式有问题,dist/types.d.ts文件中
这种引入方式import React from 'react';需要改为import * as React from 'react';
LiuuY commented
能把具体的报错信息发出来么?
miaomiaomiaoer commented
miaomiaomiaoer commented
已经设置esModuleInterop为true了
miaomiaomiaoer commented
用的是0.8.4版本
miaomiaomiaoer commented
下周一要上线,大佬可以今天或者周一给个新版本吗?
LiuuY commented
试试 tsconfig.json 里面加上"allowSyntheticDefaultImports": true
{
"compilerOptions": {
"allowSyntheticDefaultImports": true
}
}