Giter Site home page Giter Site logo

Comments (5)

laniehei avatar laniehei commented on April 28, 2024

Hi @Andrew-Bootsma,

It sounds like this might be related to a bundler issue. Have you followed the following instructions on Brian's course website?

https://github.com/btholt/intro-to-web-dev-v2/blob/efa8735e7d4999c2cba4c11a49739bb428a9fa96/lessons/libraries.md#building-your-code

from intro-to-web-dev-v2.

Andrew-Bootsma avatar Andrew-Bootsma commented on April 28, 2024

Thank you for the response @laniehei

I have repeated the necessary steps from the link that you sent and I am still getting an error. The error message is now

Uncaught TypeError: (0 , _popmotion.styler) is not a function at Object.parcelRequire.animation.js.popmotion (animation.js:3) at newRequire (animation.7bfd2d21.js:47) at animation.7bfd2d21.js:81 at animation.7bfd2d21.js:120

from intro-to-web-dev-v2.

laniehei avatar laniehei commented on April 28, 2024

Hi @Andrew-Bootsma,

First, I would try to delete your node modules and reinstall. If this doesn't work, it seems like it's having an issue with the styler package within Popmotion. Do you have import { styler, value, listen, pointer, spring } from "popmotion"; at the top of your file? What happens if you change the order of the imports?

from intro-to-web-dev-v2.

fama-623 avatar fama-623 commented on April 28, 2024

Thank you for the response @laniehei

I have repeated the necessary steps from the link that you sent and I am still getting an error. The error message is now

Uncaught TypeError: (0 , _popmotion.styler) is not a function at Object.parcelRequire.animation.js.popmotion (animation.js:3) at newRequire (animation.7bfd2d21.js:47) at animation.7bfd2d21.js:81 at animation.7bfd2d21.js:120

Having the same issues. In the end I gave up. Not sure what the issue is but yeah, it doesn't work through node for some reason,

from intro-to-web-dev-v2.

ATH42 avatar ATH42 commented on April 28, 2024

hey @Andrew-Bootsma @FarfamaH

I had the same issue, fixed it with changing the dependency in the package.json to "popmotion": "8.1.24",
and import * as popmotion from "popmotion" in the animation.js
seems like they had an api change.
hope this helps.

from intro-to-web-dev-v2.

Related Issues (11)

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.