Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having difficulty using JeelizThreejsHelper in ReactApp #137

Closed
ghost opened this issue Oct 18, 2019 · 9 comments
Closed

Having difficulty using JeelizThreejsHelper in ReactApp #137

ghost opened this issue Oct 18, 2019 · 9 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2019

I am integrating the demo "football_makeup" in a react app. It requires JeelizThreejsHelper. After I use "import * as THREE from 'three' " , I get the error:- "export 'JeelizHelper' (imported as 'THREE') was not found in 'three' ". What should I do? In the file JeelizThreejsHelper.js, I am using "export default THREE" at the bottom. Please help thanks!

@AnastasiiaaaaM
Copy link

I solved it setting in webpack.config.js

new webpack.ProvidePlugin({ 'THREE': 'three' }),

@xavierjs
Copy link
Member

If somebody want to submit a PR with a React (or Vue or Angular) boilerplate it would be accepted for sure :). Waiting this I will group the tickets relative to React integration and link them from the readme.

@ghost
Copy link
Author

ghost commented Nov 1, 2019

@AnastasiiaaaaM I am using a create-react app. I do not have webpack.config.js. How do I use your suggestion?

@ghost
Copy link
Author

ghost commented Nov 1, 2019

@AnastasiiaaaaM If its possible for you to publish your code for your React app, that'll be very helpful. thanks

@AnastasiiaaaaM
Copy link

@DINESHBD I'll do it a bit later.
For now, I ejected the webpack from react-create-app: https://stackoverflow.com/questions/48308936/what-does-this-react-scripts-eject-command-do

@xavierjs
Copy link
Member

xavierjs commented Nov 2, 2019

Hi,

I have added a section about using this lib with bundlers like Webpack:
https://github.com/jeeliz/jeelizFaceFilter#with-a-bundler

I wish it will help

@ghost
Copy link
Author

ghost commented Nov 2, 2019

Thanks @xavierjs @AnastasiiaaaaM I'll work on these suggestions.

@ghost ghost closed this as completed Nov 2, 2019
@helsung
Copy link

helsung commented Jun 7, 2021

is it possible to use jeeliz on an expo react-native project?

@xavierjs
Copy link
Member

xavierjs commented Jun 7, 2021

is it possible to use jeeliz on an expo react-native project?

We don't handle react-native. This lib is for the web.

@jeeliz jeeliz deleted a comment from MUSTAQ1995 Sep 22, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants