Rollup error cloud angular


#1

Suggestions for this error? rollup failed: Could not resolve '@ionic/cloud-angular' from /Applications/MAMP/htdocs/myapp/src/app/app.module.ts

my settings:
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 0.0.48
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.2.1 Build version 8C1002


#2

presumably it is installed?

npm install @ionic/cloud-angular --save


#3

it is installed:D but still get an error :frowning:


#4

Hmm, shot in the dark, but can you move the app out of MAMPs httdocs? Similar to Dropbox, it could be the cause of the issue.

If not, try upgrading app-scripts and using the webpack bundler instead.


#5

Unfortunately this doesn’t work for me if you have other solution let me know!


#6

Hmm, could you just switch to webpack?
Chance are this is rollup not knowing how to import and find cloud.

Webpack has no issues with this, and ionic/app-scripts should be defaulting to webpack.


#7

I didn’t know webpack do you have an example?


#8

Go to your package.json and add this line:

"config": {
    ....
    "ionic_bundler": "webpack"
    ....
},

It will use the webpack compilation.