amazon-sumerian-hosts icon indicating copy to clipboard operation
amazon-sumerian-hosts copied to clipboard

HOSTS_VERSION not defined while using three.js package

Open krithick opened this issue 2 years ago • 4 comments

says it has to be defined in the webpack , but what if i dont want to manage webpack or try to implement the package with react or some other framework Screenshot 2022-06-30 at 2 48 35 PM .

krithick avatar Jun 30 '22 09:06 krithick

Hi Krithick. How are you importing and using this package?

The package itself is built using webpack, but we do/should not require that applications that use this package use webpack.

prestomation avatar Jul 05 '22 17:07 prestomation

Hi Preston , I was trying to use the node package instead of the build file for three.js just the like the Babylon examples in a react environment that is build to run three.js(Not react-drei). In other words trying to import the host and other features from the npm package

krithick avatar Jul 06 '22 04:07 krithick

On other note i cant import HOST from the build file like i used to do with the older version

Hi Preston , I was trying to use the node package instead of the build file for three.js just the like the Babylon examples in a react environment that is build to run three.js(Not react-drei). In other words trying to import the host and other features from the npm package

krithick avatar Jul 06 '22 10:07 krithick

@krithick, can you provide a small GitHub repo that demonstrates how you're trying to incorporate the hosts node module into your code? I don't think we have a clear enough understanding of your project's structure and build process to be able to provide assistance without more detail. Thanks.

Krxtopher avatar Jul 07 '22 20:07 Krxtopher

@krithick Please try the recently released version v2.0.4. This should resolve the original HOSTS_VERSION issue.

prestomation avatar Oct 25 '22 01:10 prestomation