BJS Alpha 24 build errors

I am trying to build my babylon Scene Manager extension against the latest Alpha 24 build of BabylonJS.

It now gives an error about cannot find BigUint64Array that is now defined in babylon.d.ts

I have my tsconfig.json setup

{
    "compilerOptions": {
        "target": "ES2020",
        "module": "system",
        "lib": ["es5", "es2020", "dom"],
        "experimentalDecorators": true
    },
    "include": [
        "types/**/*",
        "src/**/*",
        "pro/**/*"
    ] 
}

But get this error when running gulp

You need to add these into the list of lib: "es2015.symbol.wellknown", "es2020.bigint"

I’m not sure the first one is required, you can try first to only add es2020.bigint and see if it works.

I added the whole list from the tsconfigRules

But i still get the error

The only differences I can see is that we have:

        "module": "esNext",
        "target": "es5",

and you have “esnext” in the lib list that we don’t.

I think i found the issue… I now using this in my gulpfile.js

var tsConfig = {
    target: 'ES5',
    module: 'system',
    lib: [
        "es5",
        "dom",
        "esnext",
        "es2015.promise",
        "es2015.collection",
        "es2015.iterable",
        "es2015.symbol.wellknown",
        "es2020.bigint"
    ],
    declarationFiles: true,
    typescript: require('typescript'),
    experimentalDecorators: true,
    isolatedModules: false,
    removeComments: false,
    noResolve: true
};

var tsProject = typescript.createProject(tsConfig);

Working now

1 Like