You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing pixi and importing it, this is the following error I am getting:
ERROR in ./node_modules/@pixi/core/lib/textures/resources/ImageBitmapResource.mjs
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /projects/test-project/node_modules/@pixi/core/lib/textures/resources/ImageBitmapResource.mjs: When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.
Please add '@babel/plugin-transform-classes' to your Babel configuration.
6 | constructor(source, options) {
7 | var __super = (...args) => {
> 8 | super(...args);
| ^^^^^^^^^^^^^^
9 | };
10 | options = options || {};
11 | if (typeof source === "string") {
Current Behavior
After installing pixi and importing it, this is the following error I am getting:
Expected Behavior
I expect it to run without errors.
Steps to Reproduce
Environment
pixi.js
version: e.g. 7.1.0Possible Solution
Not really sure
Additional Information
Seems like babel added this change relatively recently and it was to prevent infinite recursion.
babel/babel#15148
babel/babel#15163
Here is the transpiled code:
The text was updated successfully, but these errors were encountered: