Skip to content

philcockfield/webpack5-tslib-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Error: Webpack5 and TSLIB

There seems to be an error loading projects that use tslib using [email protected].

See Webpack Issue #11613 - Fixed (confirmed working now with 5.0.0 release)

  • ^5.0.0-rc.3 (fail)
  • 5.0.0 (success)

Setup

yarn install

Open browser to http://localhost:3000

Error State

If [email protected] is used, the project loads in the browser without error. (see package.works.json)

Update the package to use [email protected] and the following error occurs in the browser:

Error

Uncaught TypeError: Cannot destructure property '__extends'
of '_tslib_js__WEBPACK_IMPORTED_MODULE_0___default(...)' as it is undefined.

This error is enduced when rxjs is imported and used.

About

Sample error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published