Are you trying to use any presets? If so, which ones, and what versions?
@neutrinojs/react-components
Are you using the Yarn client or the npm client? What version?
npm 6.4.1
What version of Node.js are you using?
v10.13.0
What operating system are you using?
centos7
What did you do?
made a basic app with a single component in the src/components/ComponentName/index.jsx file with the following contents:
import React from 'react';
function ComponentName() {
return (
<div> stuff</div>
);
}
export default ComponentName;
What did you expect to happen?
Expected npm build to create a usable webpacked ComponentName.js
What actually happened, contrary to your expectations?
the webpacked file in build/ComponentName.js containes a line
a.exports=require('react')
which crashes the browser when used in a Githubissues.
Githubissues is a development platform for aggregating issues.
Bug or issue? Bug
Please try to answer the following questions: