-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上传小程序报错:Error: 非法的文件,错误信息:invalid file: vendors.js, 2:317892, SyntaxError: Unexpected token ? #15520
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Apr 16, 2024
This was referenced Apr 20, 2024
@xian107 遇到了同样的问题,我通过降级 redux 依赖解决了,原因是编译后的代码中含 ?? 操作符 - "react-redux": "^9.1.0",
- "redux": "^5.0.1",
+ "react-redux": "^8.1.2",
+ "redux": "^4.2.1", |
勾 es5 体积会变大,会焦虑~ |
下次再遇到其他包,还是一样,我都没装 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
小程序基础库: 3.4.0
使用框架: React
复现步骤
Error: 非法的文件,错误信息:invalid file: vendors.js, 2:317892, SyntaxError: Unexpected token ?(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[216],{2592:function(e,t,n){"use strict";n.d(t,{NY:function(){return X},S1:function(){return q}});var r={};function i(e){return
Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors.
}n.r(r),n.d(r,{__DO_NOT_USE__ActionTypes:function(){return c},applyMiddleware:function(){return y},bindActionCreators:function(){return g},combineReducers:function(){return h},compose:function(){return m},createStore:function(){return f},isAction:function(){return b},isPlainObject:function(){return s},legacy_createStore:function(){return d}});var a=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=a,u=()=>Math.random().toString(36).substring(7).split("").join("."),l={INIT:@@redux/INIT${u()}
,REPLACE:@@redux/REPLACE${u()}
,PROBE_UNKNOWN_ACTION:()=>` 等等期望结果
微信开发者工具打包后能够正常使用,但是上传却失败了,不知道哪里错了
实际结果
希望能上传成功
环境信息
The text was updated successfully, but these errors were encountered: