Bit: Dynamic import statements

Created on 17 Apr 2019  路  3Comments  路  Source: teambit/bit

Expected Behavior

I expect the bit client to not report any issues on the component that contains dynamic import statements.

Actual Behavior

Bit client says there are issues with the component.

missing packages dependencies (use your package manager to make sure all package dependencies are installed):
src/react/private/ComponentDetailPage/ComponentDetailPage.js -> undefined

Steps to Reproduce the Problem

  1. Create a component with a dynamic import statement i.e.
    <LazyLoadModule resolve={() => import(`../../${path}/${props.name}/${props.name}.demo.js`)} />
  2. Run bit status, you should see an error now

Specifications

  • Bit version: 14.0.3
  • Node version:v10.15.0
  • npm / yarn version:6.8.0
  • Platform: Mac OSX (Mojave)
  • Bit compiler (include version):
  • Bit tester (include version):
aredependencies typbug

All 3 comments

@manuel-minniti Thanks for reporting this.
This is a bug and we are looking into it right now.
I'll post an update with my findings.

Reopening the ticket. Will be closed once the fix is released.
The PR is merged into master.

v14.1.0 has been released with the fix :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KutnerUri picture KutnerUri  路  3Comments

idkjs picture idkjs  路  4Comments

williamluke4 picture williamluke4  路  4Comments

JamesNorris11 picture JamesNorris11  路  4Comments

odedre picture odedre  路  3Comments