question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Velocity and React Compatibility

See original GitHub issue
// Something.js

import React from 'react'
import Velocity from 'velocity-animate'
import 'velocity-animate/velocity.ui'
// Log

Module not found: Error: Can't resolve 'velocity' in '/Users/Username/Repo/node_modules/velocity-animate'
 @ ./~/velocity-animate/velocity.ui.js 19:2-31
 @ ./src/components/Work/Paubox/Interactive.js
 @ ./src/components/Work/Paubox/index.js
 @ ./src/components/index.js
 @ ./src/index.js
 @ multi main

Referencing https://github.com/julianshapiro/velocity/pull/479#issuecomment-275056763

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

3reactions
Rycochetcommented, Mar 11, 2018

The Velocity namespace for import is now “velocity-animate” and should fix this issue (as of 2.0.2).

0reactions
FHoulbrequecommented, Sep 28, 2017

As you’re, I weren’t able to use import statement…

I have to register it outside react (or vue) like this:

window.Velocity = require('velocity-animate');
require('velocity-animate/velocity.ui');
Read more comments on GitHub >

github_iconTop Results From Across the Web

velocity-react - npm
React components to wrap Velocity animations. Latest version: 1.4.3, last published: 4 years ago. Start using velocity-react in your project ...
Read more >
google-fabric/velocity-react: React components for Velocity.js
React components for interacting with the Velocity DOM animation library. Read our announcement blog post for details about why and how we built...
Read more >
React vs Velocity.js | What are the differences? - StackShare
On the other hand, Velocity.js is detailed as "An incredibly fast animation engine for motion designers". It is an animation engine with the...
Read more >
Velocity — Crunchyroll's Universal React Player - Medium
Crunchyroll's Velocity player is a React Native-based cross platform framework supporting a wide range of clients and business logic ...
Read more >
velocity-react examples - CodeSandbox
Learn how to use velocity-react by viewing and forking example apps that make use of velocity-react on CodeSandbox. ; fuse-react-app ; emilus ;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found