Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in ./node_modules/@lit-labs/motion/index.js - Can't resolve './flip-controller.js' #1807

Closed
herberthobregon opened this issue Apr 24, 2021 · 1 comment

Comments

@herberthobregon
Copy link

Description

Missing *.d.ts in @LIT-labs

incorrect import, remove all *.js in import of /packages/labs/motion/src/flip.ts

Steps to Reproduce

  1. Write this code
import {flip} from '@lit-labs/motion';

class MyElement extends LitElement {
  render() {
    return html`
      <button @click=${this._toggle}>Move</button>
      <div class="box" ${flip()}></div>
    `;
  }
}

Expected Results

Correct import

Actual Results

Module not found: Error: Can't resolve './flip-controller.js' in @lit-labs/motion

@justinfagnani
Copy link
Collaborator

Thanks for the report. This is a duplicate of #1796. That's fixed on main and will be released soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants