pbakondy / android-device-list

:iphone: List of Android Supported Devices
MIT License
80 stars 26 forks source link

Build error for Angular project #3

Closed trevorsmiley closed 5 years ago

trevorsmiley commented 5 years ago

#!/usr/bin/env node at the top of index.js creates an issue when building for an Angular project.

ERROR in ./node_modules/android-device-list/index.js 1:0 Module parse failed: Unexpected character '#' (1:0) You may need an appropriate loader to handle this file type.

!/usr/bin/env node

| | 'use strict';

Removing it allows it to work

MartianH commented 5 years ago

Same problem for react (16.6.x) with create-react-app.

I just removed the shebang from the index.js file and it runs just fine now.

pbakondy commented 5 years ago

Solved