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
- Host: GitHub
- URL: https://github.com/anilanar/northbrook-webpack-incompatibility
- Owner: anilanar
- License: mit
- Created: 2017-02-02T20:00:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T20:37:06.000Z (over 8 years ago)
- Last Synced: 2025-01-20T18:51:15.705Z (4 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```