exogen / exogen/postinstall-build

babel presets not being used during postinstall

Open
#25 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
92
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I've encountered an issue where a library I've made that relies on Webpack and the Babel "react" preset, and relies on postinstall-build to build in dependent projects, fails when built there. Here's a trimmed down version that reproduces the issue:

https://github.com/bdefore/postinstall-build-error-dependent
https://github.com/bdefore/postinstall-build-error-library

The library project can successfully run `npm run build:react` but when it does so in the postinstall step of the dependent project, it fails to parse JSX.

Here's a gist of the terminal output of the failure: https://gist.github.com/bdefore/cb4269649b7e3e4e42dcf1f52d573f9a

The full npm-debug.log is checked in here: https://raw.githubusercontent.com/bdefore/postinstall-build-error-dependent/master/npm-debug.log

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.