parcel build error: "extendDefaultPlugins" - parceljs

i'm trying to build project of mine.
I new to using parcel. To build process i have this command line
"build": "parcel build index.html --dist-dir ./dist"
I get this error.
console:
"extendDefaultPlugins" utility is deprecated.
Use "preset-default" plugin with overrides instead.
For example:
{
name: 'preset-default',
params: {
overrides: {
// customize plugin options
convertShapeToPath: {
convertArcs: true
},
// disable plugins
convertPathData: false
}
}
}
√ Built in 4.24s
dist\index.html 3.74 KB 879ms
dist\favicon.9a1bb8f5.png 13.3 KB 24ms
dist\logo.9272a069.png 92.31 KB 49ms
dist\icons.9801e6f1.svg 8.81 KB 871ms
dist\index.20fbdb0c.css 9.96 KB 2.00s
dist\index.4a83a35e.js 125.64 KB 1.68s
dist\icons.9801e6f1.svg 8.81 KB 871ms
[Error: Error opening directory]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! forkify#1.0.0 build: `parcel build index.html --dist-dir ./dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the forkify#1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
I can't find a solution.
Please help me.

This was an issue in parcel 2.0.0-rc.0, that is fixed in the now-released version 2.0.0.
It had no functional impact - it was just a warning that the way in which the #parcel/optimizer-htmlnano configured svgo should eventually be updated to use a new technique.

Related

Build Failed in ionic 2 for IOS

Running ionic cordova build ios will result in the following error:
Preparing Firebase on iOS
IOS project Code Sign Entitlements now set to: LifeBuddy/Resources/LifeBuddy.entitlements
Entitlements file is in reference section.
Error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'
[ERROR] An error occurred while running cordova build ios (exit code 1).
When running the suggested command npm install -g ios-deploy I receive this error:
The following build commands failed:
Check dependencies
Write auxiliary files
(2 failures)
npm ERR! code ELIFECYCLE
npm ERR! errno 65
npm ERR! ios-deploy#1.9.3 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 65
npm ERR!
npm ERR! Failed at the ios-deploy#1.9.3 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dev-13/.npm/_logs/2018-07-31T08_07_03_860Z-debug.log
Try this,
sudo npm install -g ios-deploy --unsafe-perm=true

Error: package reason-react not found or built

After running:
bsb -init my-react-login-app -theme react
Then, I ran the following to, as I understand, build the project:
$npm run build
But, I got the following error output:
> my-react-login-app#0.1.0 build /Users/kevinmeredith/Workspace/my-react-login-app
> bsb -make-world
Package not found: resolving package reason-react in /
File "bsconfig.json", line 1
Error: package reason-react not found or built , if it is not built
Please run 'bsb -make-world', otherwise please install it
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! my-react-login-app#0.1.0 build: `bsb -make-world`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the my-react-login-app#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kevinmeredith/.npm/_logs/2018-06-24T01_36_13_899Z-debug.log
How can I resolve this issue?
See the readme; that template needs you to install reason-react through npm install or yarn add. After that it should work. We don't check in the entire reason-react dependency chain in the template.

ionic 2/3 build fail

I need help, I can not build my app, I get the following error:
[19:09:38] typescript: src/pages/sidemenu/sidemenu.ts, line: 24
[19:09:38] typescript: src/pages/sidemenu/sidemenu.ts, line: 25
[19:09:38] ionic-app-script task: "build"
[19:09:38] Error: Failed to transpile program
Error: Failed to transpile program
at new BuildError (/usr/src/app/node_modules/#ionic/app-scripts/dist/util/errors.js:16:28)
at /usr/src/app/node_modules/#ionic/app-scripts/dist/transpile.js:137:20
at Promise ()
at transpileWorker (/usr/src/app/node_modules/#ionic/app-scripts/dist/transpile.js:103:12)
at Object.transpile (/usr/src/app/node_modules/#ionic/app-scripts/dist/transpile.js:61:12)
at buildProject (/usr/src/app/node_modules/#ionic/app-scripts/dist/build.js:97:78)
at /usr/src/app/node_modules/#ionic/app-scripts/dist/build.js:47:16
at
npm info lifecycle payman#0.0.1~build: Failed to exec build script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! payman#0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the payman#0.0.1 build script.
This is probably not a problem with npm. There is likely additional logging output above.
can anybody help me please??
Happens most of the time because of the version of #ionic/app-scripts try to remove the package and add it again using npm

Issus Ionic Cordova platform add IOS

ionic Cordova platform and IOS
✖ Cordova platform adds ios --save - failed!
[ERROR] Exception: Using Cordova-fetch for Cordova-ios#^4.4.0
Error: Failed to fetch platform `cordova-ios#^4.4.0`
Probably this is either a connection problem or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 254 Error output:
npm ERR! path
/Users/zion/Desktop/RSSFeederApp/node_modules/node_modules/file:cordova-dist-dev/CB-11690/cordova-common-1.4.1.tgz
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall stat
npm ERR! enoent ENOENT: no such file or directory, stat
'/Users/zion/Desktop/RSSFeederApp/node_modules/node_modules/file:cordova-dist-dev/CB-11690/cordova-common-1.4.1.tgz'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zion/.npm/_logs/2017-08-31T07_48_01_154Z-debug.log
This issue is related to npm 5.3.0.
It is best to downgrade to 5.2.0 using npm install -g npm#5.2.0
For us this is most commonly caused by npm's broken lockfile approach.
To resolve it, delete the package-lock.json and run your command again.
try this, and make sure you are using Mac
ionic platform add ios

build prod failed: spawn EACCES with ionic2

I build an hybrid app using Ionic 2.
I got a windows pc and using mac virtual box for Xcode.
I can run the app on browser and android just fine in my windows.
problem is when I'm moving to mac I'm doing the same things on node JS and I get errors.
I used those lines in the terminal
ionic start/run/emulate/build Vme2
sudo ionic start/run/emulate/build Vme2
none works
this is the error I get
> ionic-hello-world# build /Users/amitaimazliah/Desktop/Vme2
> ionic-app-scripts build
[08:38:07] ionic-app-scripts 0.0.38
[08:38:07] build prod started ...
[08:38:07] clean started ...
[08:38:07] clean finished in 3 ms
[08:38:07] copy started ...
[08:38:07] ngc started ...
[08:38:07] copy finished in 262 ms
[08:38:07] build prod failed: spawn EACCES
[08:38:07] ionic-app-script task: "build"
[08:38:07] Error: spawn EACCES
npm ERR! Darwin 14.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world# build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world# build script 'ionic-app-scripts build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/amitaimazliah/Desktop/Vme2/npm-debug.log
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
[08:38:07] lint started ...
[08:38:08] tslint: src/pages/home/home.ts, line: 57
Unused method: 'setNewPhotos'
L57: private setNewPhotos()
[08:38:08] lint finished in 1.27 s
(node:2376) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed
any ideas what am I doing wrong?
thanks
You have problem when build app.Can you try use this command '
ionic hooks add
Cheer !