yxb94616
yxb94616
求助:启动报这个, `Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.` 也不是错误,但是影响应用启动,该这么解决呢,在网上找的方法没有成功解决
@521xueweihan 如果只是需要实现 issue 截图里的期望效果,我看这块 github 是用的 svg 实现的,其中 polyline 如下图,可以 copy 这个 svg,然后构建对应的 points 数据就行,颜色尺寸都可以改 ````html ````
@sjqw @heyongsheng @L-T-G @skyclouds2001 已找到解决这个问题的方法,在你使用的 tsconfig*.json 下的 compilerOptions 中添加如下属性/值: `"moduleResolution": "bundler"` 错误解决后,引入插件使用的话,插件必须传参数,这个是插件的问题,目前我传的是 `useSource: true` [https://github.com/element-plus/unplugin-element-plus#usesource](url) 造成这个错误的原因是因为 typescript 的模块解析策略问题,有兴趣可以了解一下,推荐几篇文章: [https://www.typescriptlang.org/docs/handbook/module-resolution.html](url) [https://juejin.cn/post/7221551421833314360](url)
> "moduleResolution": "bundler" 使用这个配置后,从element-plus导出的组件类型找不到了。 import type { FormInstance } from 'element-plus' // 模块"element-plus"没有导出的成员"FormInstance" 我这里没有这个问题呐 
> > > "moduleResolution": "bundler" 使用这个配置后,从element-plus导出的组件类型找不到了。 import type { FormInstance } from 'element-plus' // 模块"element-plus"没有导出的成员"FormInstance" > > > > > > 我这里没有这个问题呐  > > 你的package.json中有type:"module"吗 没有呢