页面引入:import utils from "@/static/utils/utils.js";
报错:
10:15:39.114 [plugin:uni:app-uts] load_transformed failed
10:15:39.115 Caused by:
10:15:39.115 0: failed to analyze module
10:15:39.115 1: failed to resolve ../../static/utils/utils.js from D:\miniProgram\unpackage\dist\dev.uvue\app-android\pages\index\index.uvue?type=page
10:15:39.115 2: index not found
1 个回复
套马杆的套子 - 没有解决不了的问题,只有解决不完的问题
参考下,尽量别放到static文件夹下,放到根目录试试
https://doc.dcloud.net.cn/uni-app-x/compiler/#static