FuelInteractive / fuel-ui

UI Components for use with Angular2 and Bootstrap4
http://fuelinteractive.github.io/fuel-ui
301 stars 56 forks source link

Error - Can not resolve files #71

Open WarTech9 opened 8 years ago

WarTech9 commented 8 years ago

I installed fuel ui using the 'manual' install process, on an existing project. Trying to import from 'fuel-ui/fuel-ui' gives the following errors:

ERROR in ./~/fuel-ui/fuel-ui.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./dist/components/components in ..../node_modules/fuel-ui
 @ ./~/fuel-ui/fuel-ui.js 5:9-48

ERROR in ./~/fuel-ui/fuel-ui.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./dist/directives/directives in ..../node_modules/fuel-ui
 @ ./~/fuel-ui/fuel-ui.js 6:9-48

ERROR in ./~/fuel-ui/fuel-ui.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./dist/pipes/pipes in ..../node_modules/fuel-ui
 @ ./~/fuel-ui/fuel-ui.js 7:9-38

ERROR in ./~/fuel-ui/fuel-ui.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./dist/utilities/utilities in ..../node_modules/fuel-ui
 @ ./~/fuel-ui/fuel-ui.js 8:9-46

Looking under ./node_modules/fuel-ui/ I don't see a dist folder. Not sure if that's supposed to be there, but that's the error.

My project is using webpack, cloned from the angular2-redux starter here: https://github.com/rangle/angular2-redux-starter

StacyGay commented 8 years ago

For now the dist folder is only really used for development on the fuel-ui repo. Its recommended to use the bundle files instead. If you need webpack to compile the individual modules for tree-shaking try including node_modules/fuel-ui/fuel-ui.ts or node_modules/fuel-ui/src/fuel-ui.ts instead of node_modules/fuel-ui/fuel-ui.js

fdu-axiometrics commented 8 years ago

I'm also using webpack. and get following errors:

EXCEPTION: Failed to load components/DatePicker/DatePicker.html

Does this library support webpack? It would be very helpful to have it in one of the webpack starter project, like this one https://github.com/AngularClass/angular2-webpack-starter

datatypevoid commented 8 years ago

Any updates on this issue? Also experiencing it.

StacyGay commented 8 years ago

This library currently doesn't support webpack.
However we're focusing on this during the coming week once we can finish the update to RC5

datatypevoid commented 8 years ago

Okay cool, thanks for the quick answer. Looking forward to the support.