Giter Club home page Giter Club logo

Comments (10)

legomushroom avatar legomushroom commented on April 28, 2024 6

sorry, wrong direction.

I got the issue now, please move your scripts inside body tag (better to the very bottom of it). mojs adds modules to the document.body which is not yet inited if you will link it in the head thus you got the error. You will have the same issue with #mo-shape tag since you are trying to use it before it was declared.

Hope it helps.

from mojs.

legomushroom avatar legomushroom commented on April 28, 2024

Hi @wanbinkimoon !

Thanks for the alert. Could you please post the entire log here, just tried to install it with bower install mojs and it worked fine.

Thanks!

from mojs.

wanbinkimoon avatar wanbinkimoon commented on April 28, 2024

This is what the console respond with this error

Console 
mojs.js:5 Uncaught ReferenceError: require is not defined
main.js:3 Uncaught ReferenceError: mojs is not defined

you can find the whole test project in this repo https://github.com/wanbinkimoon/mojs-test.git

from mojs.

legomushroom avatar legomushroom commented on April 28, 2024

@wanbinkimoon pushed the fix to the master.

Meanwhile Bower updating package's version, please try to install mojs with bower install https://github.com/legomushroom/mojs.git#master

If it will ask a specific commit to use - that would be 3dfdc4ae03.

from mojs.

wanbinkimoon avatar wanbinkimoon commented on April 28, 2024

@legomushroom the problem is still there

EDIT
now the error are still 2 but different here a screenshot

from mojs.

legomushroom avatar legomushroom commented on April 28, 2024

@wanbinkimoon please change the link
<script src="assets/vendors/mojs/lib/mojs.js" charset="utf-8"></script>
to
<script src="assets/vendors/mojs/build/mo.min.js" charset="utf-8"></script>

from mojs.

wanbinkimoon avatar wanbinkimoon commented on April 28, 2024

I did that you can see it in the new commit

from mojs.

legomushroom avatar legomushroom commented on April 28, 2024

what do you pass as `parent' option?

from mojs.

wanbinkimoon avatar wanbinkimoon commented on April 28, 2024

It helped, error fixed. Thanks

from mojs.

legomushroom avatar legomushroom commented on April 28, 2024

Welcome and thanks for the alert!

from mojs.

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.