Giter VIP home page Giter VIP logo

Comments (7)

ThomasAtome avatar ThomasAtome commented on May 23, 2024 1

Thanks for the commit :)

I have another problem now, when i try to launch my npm test, the test crashed and said me that "PIXI is not defined". Do you have any idea ?

EDIT : And the log is from the pixi multistyle text module.

from pixi-multistyle-text.

bluepichu avatar bluepichu commented on May 23, 2024

How are you building your project? (e.g., ES6 module imports with something like Webpack or Rollup, or via TypeScript?)

There is a missing export at the moment that I'm trying to fix - it has some issues with the way that TS emits the declaration files.

from pixi-multistyle-text.

ThomasAtome avatar ThomasAtome commented on May 23, 2024

We used ES5 with webpack.

module.exports = MultiStyleText;

Just adding this at the end of the js script file resolved my problem.

from pixi-multistyle-text.

bluepichu avatar bluepichu commented on May 23, 2024

This is mostly fixed by just adding Browserify to our build chain (see 77648e7). However, this does cause a breaking change: the class is now accessed via MultiStyleText.MultiStyleText since it's behind a "module".

Also, the fix above is only marked as partial because the .d.ts file is still helplessly broken (but somewhat more so than it was before). The built pixi-multistyle-text.js in that commit should suffice if you're not using TS.

from pixi-multistyle-text.

bluepichu avatar bluepichu commented on May 23, 2024

(Pardon the history rewrite; the commit message was blatantly wrong. See fb261ca.)

from pixi-multistyle-text.

tleunen avatar tleunen commented on May 23, 2024

@bluepichu Where are your commits? I don't see any PR with the fixes to be merged

from pixi-multistyle-text.

bluepichu avatar bluepichu commented on May 23, 2024

There isn't a PR yet - I still need to fix something related to the emitted .d.ts. The work thus far is on the iss12 branch of my fork.

from pixi-multistyle-text.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.