Skip to content

@antmjs/doc编译报json解析错误 #159

Description

@loclink

错误描述:

执行 npx antm-doc-start 命令报错

这看起来是一个json文件解析报错,但我审查过json文件内容发现并无问题。

ERROR in ./.temp/wm-taro-design/all-search.json
Module parse failed: Cannot parse JSON: Unexpected token ";" (0x3B) in JSON at position 1718893 while parsing near "...样式变量 Border\"\n    }\n];\n"
File was processed with these loaders:
 * ../../node_modules/.pnpm/registry.npmmirror.com+swc-loader@0.2.3_@swc+core@1.3.95_webpack@5.89.0/node_modules/swc-loader/src/index.js
You may need an additional loader to handle the result of these loaders.

另外无论是在自己项目中单独使用@antmjs/doc,还是在@antmjs/vantui中执行docs:watch均存在此错误;而打包时执行npx antm-doc-build命令无报错且产物在浏览器中运行正常。

预期:

dev 模式正常

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions