lelandrichardson / redux-pack

Sensible promise handling and middleware for redux
MIT License
1.33k stars 60 forks source link

Failed to compile project when importing redux-pack #24

Closed AM-NiceDay closed 7 years ago

AM-NiceDay commented 7 years ago

Node version: v7.2.0 Project created via create-react-app with react-scripts v0.7.0

I've tried to install with both npm install -S redux-pack and yarn add redux-pack, but when I'm importing redux-pack into project: import { middleware as reduxPackMiddleware } from 'redux-pack';

I'm receiving this error:

Failed to compile.

Error in ./~/redux-pack/lib/handle.js
Module not found: 'deline' in [path to project]/node_modules/redux-pack/lib

 @ ./~/redux-pack/lib/handle.js 1:1303-1320

I've already tried manually install 'deline' module and it appears in 'node_modules' folder, but haven't succeed.

Can someone please share any thoughts on possible solutions and I will try to fix it?

arialpew commented 7 years ago

https://github.com/airbnb/deline/issues/1

It seem "Deline" package have an incorrect main entrypoint in package.json file.

You can change path in "node_modules/deline/package.json".

I think Airbnb team will resolve the problem asap.

Update : fixed.

casio commented 7 years ago

Hey guys,

appears I have a possibly related issue - after installing & importing redux-pack I get:

TransformError: <project>/node_modules/deline/build/deline.js: Couldn't find preset "airbnb" relative to directory "<project>/node_modules/deline"

Installing babel-preset-airbnb works around this for me, but I thought I let you know anyway.