Haul: Cannot find module 'core-js/modules/es7.string.pad-start'

Created on 24 Apr 2017  路  8Comments  路  Source: callstack/haul

Current Behavior

screen shot 2017-04-24 at 10 18 28 pm

Expected Behavior

init haul correctly

Haul Configuration (webpack.haul.js)

can't generate configuration file

Your Environment

| software | version
| ---------------- | -------
| Haul | latest
| react-native | 0.43.4
| node | 7.5.0
| npm or yarn | 4.5.0

Most helpful comment

The problem occurs when install deps with npm. Removing node_modules and reinstalling doesn't help. yarn works fine however.

What happened in my case is npm installed [email protected] -> [email protected] -> [email protected] to the root of node_modules. There is no module/es7.string.pad-start.js in [email protected] yet.

Adding core-js to dev deps in my project fixed the problem.

All 8 comments

Have you tried removing your node_modules and installing them again?

I just installed and inited project once again - had no issues at all. Let me know if the problem still persist - if yes, I'll be happy to reinvestigate this issue.

The problem occurs when install deps with npm. Removing node_modules and reinstalling doesn't help. yarn works fine however.

What happened in my case is npm installed [email protected] -> [email protected] -> [email protected] to the root of node_modules. There is no module/es7.string.pad-start.js in [email protected] yet.

Adding core-js to dev deps in my project fixed the problem.

i npm install core-js , and fixed it

I get this error when using npm instead of yarn. (npm version 4.2.0, node version 7.9.0) Installing core-js as a dev dependency fixes the issue.

While yarn is great for many projects, I don't know that using yarn should be a requirement for using haul. Would it make sense for core-js to be added as a peer dependency of this project to support npm users?

I still run into this issue on new projects when installing the latest version of haul, is there a reason this issue has been closed?

@Traviskn a pr adding core-js to haul's dependencies is welcome

sounds good, I'd be glad to help contribute

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jounii picture jounii  路  5Comments

tkow picture tkow  路  3Comments

aaronkchsu picture aaronkchsu  路  5Comments

MichelDiz picture MichelDiz  路  3Comments

chaseholland picture chaseholland  路  5Comments