An open API service indexing awesome lists of open source software.

https://github.com/anilanar/northbrook-webpack-incompatibility

A repo to reproduce incompatibility between northbrook/link and webpack
https://github.com/anilanar/northbrook-webpack-incompatibility

Last synced: 3 months ago
JSON representation

A repo to reproduce incompatibility between northbrook/link and webpack

Awesome Lists containing this project

README

        

# How to reproduce

```
npm install
cd packages/main
npm run build
```

## To see webpack's module resolution error in detail

```
npm run build:detailed
```

The relevant part is the following:

```
using description file: /absolute-path-to-project-dir/packages/main/node_modules/@nwi/other/package.json
(relative path: ./absolute-path-to-project-dir/packages/other/my-main-field/index.js)
```

So basically, webpack assumes that the absolute path in the main field is a
relative path:

```
actual: /absolute-path-to-project-dir
webpack thinks: ./absolute-path-to-project-dir
```