@Ashurbeyli wrote:
package.json
{ "dependencies": { "angular2": "2.0.0-beta.11", "es6-promise": "3.1.2", "es6-shim": "0.35.0", "ionic-framework": "2.0.0-beta.2", "ionic-native": "^1.0.9", "ionicons": "3.0.0-alpha.3", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", "zone.js": "0.6.4" }, "devDependencies": { "awesome-typescript-loader": "^0.16.2", "strip-sourcemap-loader": "0.0.1", "typescript": "^1.7.5" }, "name": "cutepuppypics", "description": "cutePuppyPics: An Ionic project", "cordovaPlugins": [ "cordova-plugin-device", "cordova-plugin-console", "cordova-plugin-whitelist", "cordova-plugin-splashscreen", "cordova-plugin-statusbar", "ionic-plugin-keyboard", "phonegap-plugin-push", "cordova-plugin-geolocation", "cordova-plugin-camera", "cordova-plugin-file-transfer", "cordova-plugin-actionsheet" ], "cordovaPlatforms": [ "android", "ios" ] }
webpack.config.js is
var path = require('path'); module.exports = { entry: [ path.resolve('bower_components/ionic-platform-web-client/dist/ionic.io.bundle'), path.normalize('es6-shim/es6-shim.min'), 'reflect-metadata', // 'web-animations.min', path.normalize('zone.js/dist/zone-microtask'), path.resolve('app/app'), ], output: { path: path.resolve('www/build/js'), filename: 'app.bundle.js', pathinfo: false // show module paths in the bundle, handy for debugging }, module: { loaders: [ { test: /\.js$/, loader: 'awesome-typescript', query: { doTypeCheck: false, useWebpackText: true }, include: path.resolve('app'), exclude: /node_modules/ }, { test: /\.js$/, include: path.resolve('node_modules/angular2'), loader: 'strip-sourcemap' } ], noParse: [ /es6-shim/, /reflect-metadata/, /web-animations/, /zone\.js(\/|\\)dist(\/|\\)zone-microtask/ ] }, resolve: { alias: { 'ionic': 'ionic-framework', }, extensions: ['', '.js'] } };
on terminal after ionic serve -d
Module not found: Error: Cannot resolve module 'web-animations.min' in /Users/ceyhun23/Desktop/zupapp resolve module web-animations.min in /Users/ceyhun23/Desktop/zupapp looking for modules in /Users/ceyhun23/Desktop/zupapp/node_modules /Users/ceyhun23/Desktop/zupapp/node_modules/web-animations.min doesn't exist (module as directory) resolve 'file' web-animations.min in /Users/ceyhun23/Desktop/zupapp/node_modules resolve file /Users/ceyhun23/Desktop/zupapp/node_modules/web-animations.min doesn't exist /Users/ceyhun23/Desktop/zupapp/node_modules/web-animations.min.js doesn't exist ...
if i comment web-animaton.min row on package.json
multi main
Module not found: Error: Cannot resolve module 'zone.js/dist/zone-microtask' in /Users/ceyhun23/Desktop/zupapp
resolve module zone.js/dist/zone-microtask in /Users/ceyhun23/Desktop/zupapp
looking for modules in /Users/ceyhun23/Desktop/zupapp/node_modules
resolve 'file' or 'directory' dist/zone-microtask in /Users/ceyhun23/Desktop/zupapp/node_modules/zone.js
resolve file
/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask doesn't exist
/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask.js doesn't exist
resolve directory
/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask doesn't exist (directory default file)
/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask/package.json doesn't exist (directory description file)
[/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask]
[/Users/ceyhun23/Desktop/zupapp/node_modules/zone.js/dist/zone-microtask.js]
@ multi main (CLI v2.0.0-beta.17)Please, help me. What should I do ?
Posts: 5
Participants: 3