Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- [-] I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
When bundling Parse JS SDK client through VITE - vue's new bundler, based on snowpack - compilation fails due to an error caused in parse.
Steps to reproduce
- Check out repo: https://github.com/tremendus/vite-vue3-tailwind-starter-parse-issue
- Branch -> main
- run
npm i
- open browser if it doesn't automatically http://localhost:3000
- open developer console - see error
NOTE: parse lib is imported in src/App.vue
Actual Outcome
Uncaught TypeError: Super expression must either be null or a function
_inherits Babel
Subscription LiveQuerySubscription.js:149
js LiveQuerySubscription.js:197
__require chunk-BIJEITIM.js:6
js LiveQueryClient.js:65
__require chunk-BIJEITIM.js:6
js ParseLiveQuery.js:25
__require chunk-BIJEITIM.js:6
js Parse.js:286
__require chunk-BIJEITIM.js:6
js index.js:1
__require chunk-BIJEITIM.js:6
<anonymous> parse:1
This is the code at 149:
var Subscription = /*#__PURE__*/function (_EventEmitter) { << 149
(0, _inherits2.default)(Subscription, _EventEmitter);
var _super = _createSuper(Subscription);
// ....
Expected Outcome
I expected Parse to be bundled without error
Environment
"parse": "^3.2.0",
- see package.json in repos for other dependencies.
Server
- Parse Server version: - Not applicable
Database
- System (MongoDB or Postgres): Not applicable
Client
- Parse JS SDK version: "parse": "^3.2.0",
- localhost on node 15.11 M1 using "vite": "^2.3.0"
Logs
No logs - see error in console