3.1.2使用axios报错

coocs creator3.5.2,axios v0.27.2用不了
报错

TypeError: __checkObsolete__ is not a function
    at Object.execute (c50adb79804ee01cfa4cf09c86b93d61ed6f4861.js:38:7)
    at doExec (system.js:444:34)
    at postOrderExec (system.js:440:12)
    at system.js:430:30
    at Array.forEach (<anonymous>)
    at postOrderExec (system.js:428:12)
    at system.js:430:30
    at Array.forEach (<anonymous>)
    at postOrderExec (system.js:428:12)
    at system.js:406:14

直接npm安装, 引入 import axios from 'axios/dist/axios.min.js'也是报这个错。
npm安装引入import axios from ‘axios’
报这个错:

Error: Unable to resolve bare specifier '__unresolved_5' from http://localhost:7456/scripting/x/chunks/c6/c6f1969f036e8d9d4d332fe596d233446b94550f.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_7' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_7' from http://localhost:7456/scripting/x/chunks/f4/f4bf496bbf55ef75f3092a3c0526b73aefbf9906.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_4' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_4' from http://localhost:7456/scripting/x/chunks/89/8978bd75d76636d037222c9d8c343ba48da3dc0c.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_1' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_1' from http://localhost:7456/scripting/x/chunks/45/45c1923a5a64a5d6f4f2f0bed16b52f5d8b74828.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_4' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_4' from http://localhost:7456/scripting/x/chunks/e8/e8bccfa5c86dcf16a6c21f8091ce6030eda98a2a.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_2' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_2' from http://localhost:7456/scripting/x/chunks/9d/9da12e344b07966501de2f4a313bb5c8cba3672f.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43
index.js:1 PromiseRejectionEvent {isTrusted: true, reason: Error: Unable to resolve bare specifier '__unresolved_2' from http://localhost:7456/scripting/x/chu…, type: 'unhandledrejection', target: Window, currentTarget: Window, …}
(anonymous) @ index.js:1
system.js:679 Uncaught (in promise) Error: Unable to resolve bare specifier '__unresolved_2' from http://localhost:7456/scripting/x/chunks/b3/b3813b8c5a732c4a6269dd556d7b1ffc4cafa6be.js (SystemJS Error#8 https://git.io/JvFET#8)
    at throwUnresolved (system.js:679:11)
    at SystemJS.systemJSPrototype.resolve (system.js:675:99)
    at SystemJS.systemJSPrototype.resolve (system.js:1020:24)
    at SystemJS.systemJSPrototype.resolve (system.js:1208:26)
    at system.js:336:39
    at Array.map (<anonymous>)
    at system.js:334:43

方法不对,仔细看我的操作步骤

pnpm i -D axios安装
然后在node_modules的axios里找到dist,再找到axios.min.js
将它复制到项目的script里
用import axios from “./axios.min.js”;引入
测试:(亲测成功)
axios.get(‘https://api.vvhan.com/api/love?type=json’).then(data=>{

        console.log('data',data.data)

    })