Importing ArcRotateCamera from CDN Package

In the past, we could import ArcRotateCamera from babylon.js script. But now if I use the following line:

import { ArcRotateCamera } from “

I will get this error:

The requested module ‘’ does not provide an export named ‘ArcRotateCamera’

How can I import ArcRotateCamera without using NPM package?

Our CDN only hosts the UMD version, which populates the global namespace. instead of importing, use BABYLON.ArcRotateCamera. If you want to properly import you will need to use the es6 packages - but we are (still?) not serving them. unpkg does, if it helps -

1 Like