在app.js中import失败.
发布于 4 年前 作者 yangfan 4276 次浏览 来自 问答

我在参考 https://rushb.cn/201612/ciwulzrjx00002hw1v6uzk68d/ 这篇文字做自定义组件的时候发现在 app.js里面

        import { footerPannel } from ‘component/footer-pannel/footer’

会提示如下错误:

6 回复

我的开发工具为什么都不出现import include template 标签啊?

求解答:

@Ethan  问题已经解决了, 谢谢.

@Ethan  修改了还是不对, 文件夹结构如下

而且安装你的说法修改后的错误提示还是没有变

同问, 关注

@昌 求问怎么解决的?

可能是路径问题,试一试  import { footerPannel } from ‘/component/footer-pannel/footer’

如果还不行,把你的folder structure粘贴出来看看呗

回到顶部