Nikos123 Posted December 23, 2015 Share Posted December 23, 2015 Hi I've posted a question here: http://stackoverflow.com/questions/34442513/how-to-es6-module-import-babylonjs-in-webpack Basically I can't get this to work with webpack import BABYLON from 'babylonjs'var BABYLON = require('babylonjs') Any ideas? Quote Link to comment Share on other sites More sharing options...
Nikos123 Posted December 25, 2015 Author Share Posted December 25, 2015 up votedown vote Your declarations file doesn't define the "babylonjs" module. Just add those lines at the end: declare module "babylonjs" {export = BABYLON;} Or maybe export default BABYLON. Depends on the module itself. http://stackoverflow.com/a/34450634/1339087 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.