npm start fails with unexpected token in file from local dependency
问题 I made first-app with create-react-app where a component makes use of some material-ui components, and it is working fine when started with npm start . From this application I extracted that nice-component component in a new nice-component folder, with its package.json , the component is in a .js file that export default the component class - in Visual Studio Code I can succesfully navigate to its sources, so I would guess the setup / folder configuration is correct. In final-app application,