ghiscoding / Aurelia-Bootstrap-Plugins

Aurelia-Bootstrap-Plugins are Custom Elements to bridge with a set of 3rd party Bootstrap addons
https://ghiscoding.github.io/Aurelia-Bootstrap-Plugins
MIT License
45 stars 23 forks source link

Error: Cannot find module './aurelia-bootstrap-datetimepicker'. #37

Closed miromarchi closed 6 years ago

miromarchi commented 6 years ago

My setup aurelia, typescript, webpack (using an old version of the skeleton, which i update manually) aurelia-webpack-plugin": "^2.0.0-rc.5", "webpack": "2.7.0", "webpack-dev-server": "2.9.4",

Steps I have done:

This setup throws the error in issue title Error: Cannot find module './aurelia-bootstrap-datetimepicker'. I tried to import the module in different ways, with no success.

I have other plugins installed and working with the same procedure. E.g. aurelia-configuration and aurelia-google-analytics. I think i might be missing something simple :D any suggestions? thanks

ghiscoding commented 6 years ago

You probably have a syntax error somewhere, please review the README for installation and/or look at the client samples and maybe the doc for a TypeScript WebPack2 project. The plugin is working fine, I used it last weekend.

And you do need the PLATFORM.moduleName syntax with WebPack2, it won't work without it and will throw some errors similar to what you described.

ghiscoding commented 6 years ago

Are you running WebPack through the Aurelia-CLI by any change? I am using WebPack directly without the CLI (with npm start) and for that work, you also have to update your webpack.config.js file. I never got the Aurelia-CLI working correctly with WebPack since I use a custom installation, it throws an error when I try to run au run but it works with npm start, so I never bothered opening a CLI issue. Anyhow, can you please modify your webpack config and try running it through npm start

ghiscoding commented 6 years ago

I might end up closing this issue if I get no feedback and/or a way to reproduce the error. As a reminder, the lib itself includes multiple client samples, you can clone it and try to install any of the client folder (or even the doc folder)

ghiscoding commented 6 years ago

closing for no feedback or ways to reproduce

miromarchi commented 6 years ago

Sorry for the delay in feedback. thanks for checking this out. I still can't use it. I tried to use various combinations of the module path and module name, but no luck. Sorry i don't have the time to check this out more.