Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

* Export Undefined Error #83

Open
ianrtracey opened this issue Feb 14, 2018 · 2 comments
Open

* Export Undefined Error #83

ianrtracey opened this issue Feb 14, 2018 · 2 comments

Comments

@ianrtracey
Copy link

ianrtracey commented Feb 14, 2018

"istanbul-instrumenter-loader": "^1.2.0",

There exists an index.ts library file with some * exports.

//index.ts
export * from './some-file'
...

When importing this new library file with the loader argument
istanbul-instrumenter-loader?esModules=true' the resulting karma runner failure is:

Uncaught TypeError: Cannot read property 'f' of undefined at webpack:///src/integration-test/mock-service/services/index.ts:9:7 <- test.context.js:281375
(Which is the line number of the last * export)

When the star exports are removed, the coverage runner succeeds. Not sure why. Strangely enough, the exact same codebase compiles and runs successfully within the karma suite when the instanbul-instrumenter-loader is removed.

@snapwich
Copy link

I dunno if this is the same issue, but the error is the same and in our case a circular dependency was causing the error.

@bcaudan
Copy link

bcaudan commented Jul 19, 2019

Same issue, thx @snapwich for pointing out the circular dependency!

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

No branches or pull requests

3 participants