Skip to content

[1.0.1] Cannot import from es6-tween npm module (worked in 1.0.0) #1637

@Matthew-Smith

Description

@Matthew-Smith

Stencil version:

 @stencil/core@1.0.1

I'm submitting a:

[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

We use es6-tween in our project and importing from it broke when we tried to upgraded from 1.0.0 to 1.0.1 (also tried 1.0.2 and 1.0.3)

This is the error is reported when we try compiling:

[ ERROR ]  Rollup: Missing Export: src/components/visual/repl-graph/lazy_kiceaumtpiujvuzscftlmg-repl-graph.js:18:9
           'autoPlay' is not exported by node_modules/es6-tween/bundled/Tween.min.js

      L0:  16:     return c > 3 && r && Object.defineProperty(target, key, r), r;
      L0:  17: };
      L0:  18: import { autoPlay, Easing, Tween } from 'es6-tween';
      L0:               ^
      L0:  19: import joint from 'rappid';
      L0:  20: import { debounce } from 'typescript-debounce-decorator';

Expected behavior:

Expect that the code compiles properly.

Steps to reproduce:

In a new stencil project:

npm install --save es6-tween

Then in app-root.tsx add the following:

import * as es6Tween from 'es6-tween';

es6Tween.autoPlay(true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions