Comments (7)
Why are you shimming pixi? It has a UMD export so it should export fine in rjs environments. The shim could liekly be shadowing the forced global export that plugins rely on. (pixi exports as UMD and always to window.PIXI
)
from spine.
Just desperate tries, since PIXI is now exposed globally, but seems that then is not needed :). Still if we remove it we get the same problem.
Minified version the exception is in this line:
e.exports = PIXI.spine = {Spine: t("./Spine"),SpineRuntime: t("./SpineRuntime"),loaders: t("./loaders")}
For some reason it tries to load browserify, as you can see in the network tab http://snag.gy/0Bez0.jpg
from spine.
Seems the examples have a similar problem which is not related to require.js http://pixijs.github.io/examples/index.html?s=spine&f=dragon.js&title=Dragon&plugins=pixi-spine
from spine.
The examples has a bad version of spine being uploaded on accident, I've fixed it.
As for your error, this happens when 1) pixi is not loaded first so the global doesn't exists, or 2) The global is shadowed by a shim or some such.
If you have a small testbed I can look at this further.
from spine.
Tried doing the testbed but couldn't. We ended up moving from requirejs to webpack and that solve the issue. Now we have another regarding spine looking for the atlas with the same the json file. This is a problem because we cache bust the files, so even if both are called dragon.png and dragon.atlas, when we build it it will have different rev.
BTW which pattern of UMD are you using https://github.com/umdjs/umd for both pixi and the pixi-spine plugin ?
from spine.
We use the browserify standalone
option, so whatever they do. As for the new issue, I would open a separate ticket.
from spine.
Thanks for help :) will do
from spine.
Related Issues (20)
- Possible to create Pixi.spine without atlas in pixi.js version 7.3 and pixi-spine version 4.0.4 ? HOT 7
- PIXI.Assets options.defaultSearchParams doesn't affect atlas and image files when loading spines HOT 1
- "pixi.js": "^5.3.7" HOT 1
- Runtime 4.1 does not play nice with TypeScript strict mode HOT 2
- When will pixi v8 support be available? HOT 12
- Cannot read properties of undefined (reading "children")
- Uncaught TypeError: Cannot read properties of undefined (reading 'Spine') with PIXI.Spine
- Bug: Code reports errors and positioning problems when using a custom image path
- Support for Spine v4.2 HOT 2
- `state.removeListener` not as expected HOT 2
- How to move bone correctly? HOT 1
- bug: atlas.findRegion is not a function
- The spineData param is required. HOT 2
- Use hackTextureBySlotName with Pixi v7 and Spine v4.1
- [QUESTION] How to export spine to avoid "ClippingAttachment bounds not supported yet"
- Cannot read properties of undefined (reading 'skeleton')
- Creating mock spineData
- How to get all rendered elements of skeleton.
- Cannot read properties of undefined (reading 'substr') detectSpineVersion
- There is a chance that spine present a black outline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spine.