You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
编译小程序 import json出错 TypeError: Property properties[0] of ObjectExpression expected node to be of a type ["ObjectMethod","ObjectProperty","SpreadProperty"] but instead got "ObjectExpression"
#547
Closed
jy1989 opened this issue
Aug 29, 2018
· 3 comments
编译 页面文件 src/pages/index/index
TypeError: Property properties[0] of ObjectExpression expected node to be of a type ["ObjectMethod","ObjectProperty","SpreadProperty"] but instead got "ObjectExpression"
at validate (E:\pet\cat-wiki\node_modules.6.26.0@babel-types\lib\definitions\index.js:109:13)
at validator (E:\pet\cat-wiki\node_modules.6.26.0@babel-types\lib\definitions\index.js:57:7)
at Object.validate (E:\pet\cat-wiki\node_modules.6.26.0@babel-types\lib\definitions\index.js:190:10)
at validate (E:\pet\cat-wiki\node_modules.6.26.0@babel-types\lib\index.js:505:9)
at Object.builder (E:\pet\cat-wiki\node_modules.6.26.0@babel-types\lib\index.js:466:7)
at ImportDeclaration (E:\pet\cat-wiki\node_modules.1.0.0-beta.19@@tarojs\cli\src\weapp.js:499:130)
at NodePath._call (E:\pet\cat-wiki\node_modules.6.26.0@babel-traverse\lib\path\context.js:76:18)
at NodePath.call (E:\pet\cat-wiki\node_modules.6.26.0@babel-traverse\lib\path\context.js:48:17)
at NodePath.visit (E:\pet\cat-wiki\node_modules.6.26.0@babel-traverse\lib\path\context.js:105:12)
at TraversalContext.visitQueue (E:\pet\cat-wiki\node_modules.6.26.0@babel-traverse\lib\context.js:150:16)
编译小程序 import json出错
定位到是import json的问题:
json是一个array
报错信息
系统信息
h5编译正常
The text was updated successfully, but these errors were encountered: