Parcel: Can't resolve some dependencies

Created on 17 Jun 2018  路  1Comment  路  Source: parcel-bundler/parcel

馃悰 bug report

When trying to import a certain dependency i get: Cannot resolve dependency '...'

馃帥 Configuration (.babelrc, package.json, cli command)

The error comes when i try to build this package https://github.com/HenrikJoreteg/redux-bundler.
It works if i install it as usual, but i can't build it when it's linked.
I mean, if i install it like this, it works:
yarn install redux-bundler,
but if i do this:

git clone https://github.com/HenrikJoreteg/redux-bundler
cd redux-bundler
yarn link
cd ../my-app
yarn link redux-bundler

It can't resolves the redux-persist-middleware.

馃 Expected Behavior


Parcel should resolve redux-persist-middleware as usual

馃槸 Current Behavior


Cannot resolve dependency 'redux-persist-middleware'`

馃拋 Possible Solution

馃敠 Context


I'm trying to test the changes i made to my fork of redux-bundler.
The error doesn't show when i install it regularly because in that case, parcel looks for the compiled redux-bundler package (compiled using microbundle), which doesn't need any dependencies

馃捇 Code Sample

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.9.1
| Node | 9.11.2
| npm/Yarn |yarn 1.7.0
| Operating System | elementary os 0.4 (based on ubuntu linux 16.04)

Bug

>All comments

Found the bug! I'll open a PR as soon as i fix it

Was this page helpful?
0 / 5 - 0 ratings