-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译阶段错误:Cannot read property 'prefix' of null #67
Comments
如果我没猜错的话,你的组件代码需要改成: |
我昨天遇到过, template里不能直接写component,需要用view包住一层,不知道你的是不是这个问题,可以试试看 |
@liumin1128
因为这样可以编译为:
|
@sqaiyan 你说的应该是另外一个问题,刚测试了一下,的确如此,如果直接写component会报 |
@liumin1128 测试过,应该不是大小写的问题。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现有组件引用关系:
page
->typeMenu
->Menu
。发现,将
typeMenu
组件放在某些目录,比如非src/components
目录中时,都会在编译时输出下面错误。import的相对路径我都仔细检查过,没问题。
想请教一下,产生这个错误的原因?
The text was updated successfully, but these errors were encountered: