this is code at gist,someone help?
https://gist.github.com/Dreampie/b58dd1152070ecf0f75a4e5fb7200615
Error is :Cannot resolve module 'angular2/platform/browser'
resolve: {
modulesDirectories: ['node_modules'],
extensions: ['', '.html', '.less', '.js', '.ts']
}
add .js
to resolve
I wonder if you need to add the 'root' property to your resolve object: I use a helper function to return the root path seen in my Angular2-Webpack-Lite boilerplate
resolve: {
root: root('src')
}
If this doesn't help, feel free to take a look at my boilerplate and see the rest of my configuration.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.