rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/setSTSToken.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/client/getReqUrl.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/createRequest.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/encoder.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/getStandardRegion.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/retry.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/isFunction.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/checkBucketName.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/isBuffer.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/obj2xml.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/encodeString.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/omit.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/deepCopy.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/setRegion.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/utils/checkConfigValid.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/object/getAsyncFetch.ts. Consider restricting the plugin to particular files via options.include
rollup-plugin-inject: failed to parse E:/xxx/node_modules/ali-oss/lib/common/object/postAsyncFetch.ts. Consider restricting the plugin to particular files via options.include
1: import { formatObjKey } from './formatObjKey';
2:
3: export async function setSTSToken(this: any) {
^
4: if (!this.options) this.options = {};
Unexpected keyword 'this' (Note that you need plugins to import files that are not JavaScript) 19:22:06
at error (/E:/xxx/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)
at Module.error (/E:/xxx/node_modules/rollup/dist/es/shared/node-entry.js:13452:16)
at Module.tryParse (/E:/xxx/node_modules/rollup/dist/es/shared/node-entry.js:14163:25)
at Module.setSource (/E:/xxx/node_modules/rollup/dist/es/shared/node-entry.js:13765:39)
at ModuleLoader.addModuleSource (/E:/xxx/node_modules/rollup/dist/es/shared/node-entry.js:23730:20)
当前用的nodejs版本 v18.20.2
npm版本 10.8.0
yarn 版本# 1.22.22
系统win11
目前是不知道是oss这边的问题还是nuxt配置的问题,有清楚的大佬帮忙看下吗?
遇到了同样的问题,请问你的问题解决了吗,
node版本 v18.16.0
nuxt版本 v3.13.2
ali-oss版本 v6.21.0
vite版本 5.4.9
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
对象存储 OSS 是一款安全、稳定、高性价比、高性能的云存储服务,可以帮助各行业的客户在互联网应用、大数据分析、机器学习、数据归档等各种使用场景存储任意数量的数据,以及进行任意位置的访问,同时通过丰富的数据处理能力更便捷地使用数据。