-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Pixi with SSR library like NUXT #4558
Comments
Server-side rendering? I dont know how is it related to pixi. Polyfills conflict? |
it is as if at the time that I execute the import the library went immediately to look for some element of the dom. |
ah, that thing. There was huge PR to make pixi work on node.js . PIXI has some initializations that work immidiately. #4367 |
I added a short tutorial a while ago about running Phaser on the server. You have there some tricks you can use to make the app think it's still running inside the browser. http://www.tips4design.com/2015/06/js-running-phaser-in-nodejs.html |
@Prozi
To install it, you can run: npm install --save fs This relative module was not found:
|
is there |
then install fs by strange it should work out of the box |
@ivanpopelyshev yes what do you think? |
its possible you have 32 bit system? canvas-prebuilt doesnt work with 32 bit systems AFAIK you'd need to fork my repo and replace canvas-prebuilt dependency with canvas along with installing canvas yourself (which is a pain in the ass especially on windows) good luck, let us know how it went! |
oooooh wait you're not trying to use it on serverside right? you're just trying to use pixi.js with nuxt.js right? then it should work out of the box - and YOU DONT NEED THAT REPO |
Closing due to inactivity |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Goodmorning everyone,
I wanted to ask if anyone tried to use pixi together with nuxt.js because there seem to be errors.
The text was updated successfully, but these errors were encountered: