NPM Install Error Deploying on Vercel using NextJS - deployment

As of a few hours ago, I started getting strange errors on Vercel when trying to deploy my application, I am using NextJS. I have no idea what the error is, nor do I have any idea as to how this error started. I've even reverted back to code that was originally working with no luck. I will attach the error log along with my package.json.
"dependencies": {
"#africasokoni/react-flip-countdown": "^1.0.2",
"#ckeditor/ckeditor5-build-classic": "^28.0.0",
"#ckeditor/ckeditor5-react": "^3.0.2",
"#fortawesome/fontawesome-svg-core": "^1.2.35",
"#fortawesome/free-solid-svg-icons": "^5.15.3",
"#fortawesome/react-fontawesome": "^0.1.14",
"#react-google-maps/api": "^2.1.1",
"#slack/web-api": "^6.0.0",
"#stripe/react-stripe-js": "^1.4.0",
"#stripe/stripe-js": "^1.14.0",
"antd": "^4.16.2",
"axios": "^0.21.1",
"babel-plugin-styled-components": "^1.13.2",
"body-parser": "^1.19.0",
"bootstrap": "^5.1.0",
"browser-image-compression": "^1.0.15",
"child_process": "^1.0.2",
"clsx": "^1.1.1",
"compress-images": "^1.9.9",
"crypto": "^1.0.1",
"crypto-js": "^4.0.0",
"eslint": "^7.31.0",
"exceljs": "^4.2.1",
"expo-server-sdk": "^3.6.0",
"express": "^4.17.1",
"fast-geoip": "^1.1.13",
"firebase": "^9.0.0-beta.7",
"firebase-admin": "^9.8.0",
"gifsicle": "^5.2.0",
"gsap": "^3.7.0",
"image-size": "^1.0.0",
"jimp": "^0.16.1",
"jquery": "^3.6.0",
"mailgun-js": "^0.22.0",
"mdbreact": "^4.14.0",
"moment": "^2.24.0",
"moment-timezone": "^0.5.33",
"mongodb": "^3.6.9",
"mozjpeg": "^7.1.1",
"next": "^11.0.2",
"next-redux-wrapper": "^6.0.2",
"nookies": "^2.5.2",
"order-id": "^2.1.0",
"photoeditorsdk": "^5.11.5",
"pngquant-bin": "^6.0.0",
"postcss": "^8.2.15",
"postcss-cli": "^8.3.1",
"postcss-loader": "^5.2.0",
"pro-gallery": "^3.1.29",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-bootstrap": "^2.0.0-beta.6",
"react-devtools": "^4.14.0",
"react-dom": "^16.14.0",
"react-drag-sortable": "^1.0.6",
"react-dropzone": "^11.2.4",
"react-fast-compare": "^3.2.0",
"react-helmet": "^6.1.0",
"react-icons": "^4.1.0",
"react-image-gallery": "^1.2.6",
"react-lazyload": "^3.2.0",
"react-loadable": "^5.5.0",
"react-nestable": "^2.0.0",
"react-parallax": "^3.3.0",
"react-phone-input-2": "^2.14.0",
"react-player": "^2.9.0",
"react-polls": "^1.2.0",
"react-redux": "^7.2.2",
"react-social-icons": "^5.5.1",
"react-social-login-buttons": "^3.1.0",
"react-swipeable": "^6.0.1",
"react-tag-autocomplete": "^6.2.0",
"read-excel-file": "^5.1.0",
"redux": "^4.1.0",
"request-image-size": "^2.2.0",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.32.13",
"slack": "^11.0.2",
"socket.io": "^4.1.2",
"socket.io-client": "^4.1.2",
"stripe": "^8.148.0",
"styled-components": "^5.3.0",
"styled-jsx": "^3.4.4",
"tawkto-react": "^2.0.3",
"uuid": "^8.3.2"
},
"devDependencies": {
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.3",
"node-sass": "^5.0.0",
"styled-jsx-plugin-sass": "^1.0.0",
"typescript": "^4.1.3"
}
}
`"

Related

Ionic Capacitor Build Error: Caused by: org.gradle.api.InvalidUserDataException: You must specify a URL for a Maven repository

I am trying to build my old project with all the latest versions of ionic, angular & capacitor here is my version list ( package.json )
"dependencies": {
"#angular/cdk": "^15.0.0",
"#angular/common": "^15.0.0",
"#angular/core": "^15.0.0",
"#angular/fire": "^5.2.1",
"#angular/forms": "^15.0.0",
"#angular/platform-browser": "^15.0.0",
"#angular/platform-browser-dynamic": "^15.0.0",
"#angular/router": "^15.0.0",
"#angular/service-worker": "^15.1.2",
"#capacitor-community/facebook-login": "^1.0.0",
"#capacitor/android": "^4.6.3",
"#capacitor/app": "4.1.1",
"#capacitor/camera": "^4.1.4",
"#capacitor/core": "4.6.2",
"#capacitor/geolocation": "^4.1.0",
"#capacitor/haptics": "4.1.0",
"#capacitor/ios": "^2.2.1",
"#capacitor/keyboard": "4.1.1",
"#capacitor/splash-screen": "^4.1.3",
"#capacitor/status-bar": "4.1.1",
"#ionic-native/app-availability": "^5.15.0",
"#ionic-native/app-rate": "^5.15.0",
"#ionic-native/appsflyer": "^5.31.1",
"#ionic-native/core": "^5.0.0",
"#ionic-native/diagnostic": "^5.24.0",
"#ionic-native/fcm": "^5.25.0",
"#ionic-native/firebase-x": "^5.25.0",
"#ionic-native/google-plus": "^5.15.0",
"#ionic-native/in-app-browser": "^5.24.0",
"#ionic-native/location-accuracy": "^5.24.0",
"#ionic-native/native-geocoder": "^5.22.0",
"#ionic-native/social-sharing": "^5.26.0",
"#ionic-native/splash-screen": "^5.0.0",
"#ionic-native/status-bar": "^5.0.0",
"#ionic-native/stripe": "^5.26.0",
"#ionic-super-tabs/angular": "^6.4.0",
"#ionic-super-tabs/core": "^6.4.0",
"#ionic/angular": "^6.1.9",
"#ionic/pwa-elements": "^1.5.2",
"#ionic/storage": "^2.2.0",
"#ngx-translate/core": "^11.0.1",
"#ngx-translate/http-loader": "^6.0.0",
"#turf/turf": "^5.1.6",
"#types/googlemaps": "^3.39.2",
"#types/jquery": "^3.3.36",
"angular-i18next": "^7.0.0",
"angularx-flatpickr": "^6.3.1",
"capacitor-apple-login": "git+https://github.com/rlfrahm/capacitor-apple-login.git",
"cordova-android": "^8.1.0",
"cordova-browser": "5.0.4",
"cordova-ios": "^5.1.1",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-appavailability": "^0.4.2",
"cordova-plugin-apprate": "^1.5.0",
"cordova-plugin-appsflyer-sdk": "^6.2.40",
"cordova-plugin-browsertab": "^0.2.0",
"cordova-plugin-buildinfo": "^4.0.0",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-customurlscheme": "^4.4.0",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-enable-multidex": "^0.2.0",
"cordova-plugin-firebasex": "^9.1.2",
"cordova-plugin-globalization": "^1.11.0",
"cordova-plugin-googleplus": "^8.4.0",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-webview": "~4.1.3",
"cordova-plugin-nativestorage": "^2.3.2",
"cordova-plugin-whitelist": "~1.3.3",
"cordova-plugin-x-socialsharing": "^5.6.4",
"cordova-res": "^0.14.0",
"cordova-sqlite-storage": "^5.0.0",
"cordova-universal-links-plugin": "git+https://github.com/walteram/cordova-universal-links-plugin.git",
"core-js": "^2.5.4",
"es6-promise-plugin": "^4.2.2",
"firebase": "^7.1.0",
"flatpickr": "^4.6.3",
"i18next": "^19.0.3",
"i18next-browser-languagedetector": "^4.0.1",
"i18next-xhr-backend": "^3.2.2",
"ionicons": "^6.0.3",
"jquery": "^3.5.0",
"leaflet": "^1.6.0",
"ngx-quill": "^8.0.0",
"ngx-virtual-scroller": "^3.0.3",
"quill": "^1.3.7",
"rxjs": "~7.5.0",
"sharp": "^0.25.2",
"text-mask-core": "^5.1.2",
"tslib": "^2.3.0",
"underscore": "^1.10.2",
"uuid": "^8.0.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"#angular-devkit/build-angular": "^15.0.0",
"#angular-eslint/builder": "^14.0.0",
"#angular-eslint/eslint-plugin": "^14.0.0",
"#angular-eslint/eslint-plugin-template": "^14.0.0",
"#angular-eslint/template-parser": "^14.0.0",
"#angular/cli": "^15.0.0",
"#angular/compiler": "^15.0.0",
"#angular/compiler-cli": "^15.0.0",
"#angular/language-service": "^15.0.0",
"#capacitor/cli": "4.6.2",
"#ionic/angular-toolkit": "^6.0.0",
"#types/jasmine": "~4.0.0",
"#types/node": "^12.11.1",
"#typescript-eslint/eslint-plugin": "5.3.0",
"#typescript-eslint/parser": "5.3.0",
"codelyzer": "^5.0.0",
"cordova-plugin-ionic-webview": "^4.1.3",
"cordova-plugin-whitelist": "^1.3.4",
"jasmine-core": "~4.3.0",
"jasmine-spec-reporter": "~5.0.0",
"jetifier": "^2.0.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"moment": "^2.25.3",
"protractor": "~5.4.0",
"ts-node": "~8.3.0",
"tslint": "~5.15.0",
"typescript": "~4.8.4"
},
Blow is the error that I see in android studio
Caused by: org.gradle.api.InvalidUserDataException: You must specify a URL for a Maven repository.

BigCommerce NPM - Update Babel

I am trying to run an older BigCommerce site locally but none of the JavaScript is working on the local site. Console seems to indicate an issue with Babel.
This is what is in the error log:
Error: Module build failed: TypeError: /Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/assets/js/theme/global/quick-search.js: Cannot read property 'has' of undefined
at resolvePath (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/babel-plugin-lodash/lib/importModule.js:22:24)
at importModule (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/babel-plugin-lodash/lib/importModule.js:36:53)
at memoized (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/lodash/memoize.js:62:23)
at /Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/babel-plugin-lodash/lib/index.js:217:63
at arrayEach (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/lodash/_arrayEach.js:15:9)
at forEach (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/lodash/forEach.js:38:10)
at /Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/babel-plugin-lodash/lib/index.js:193:30
at arrayEach (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/lodash/_arrayEach.js:15:9)
at forEach (/Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/lodash/forEach.js:38:10)
at /Users/liam/Desktop/BigCommerce/KBBC+V1.4+(March+2020)-1.11.0/node_modules/babel-plugin-lodash/lib/index.js:181:28
This is what is in the package.json file. I've changed the Stencil CLI to 6.3.0 as per BC's instructions but doesn't seem to be the issue this time.
"name": "bigcommerce-cornerstone",
"description": "The BigCommerce reference theme for the Stencil platform",
"version": "6.3.0",
"private": true,
"author": "BigCommerce",
"license": "MIT",
"dependencies": {
"#bigcommerce/stencil-utils": "^1.0.10",
"async": "^2.5.0",
"babel-polyfill": "^6.26.0",
"easyzoom": "^2.5.0",
"fastclick": "^1.0.6",
"foundation-sites": "^5.5.3",
"html5-history-api": "^4.2.7",
"jquery": "^2.2.4",
"jstree": "vakata/jstree",
"lazysizes": "3.0.0",
"lodash": "^4.17.4",
"nod-validate": "^2.0.12",
"pace": "hubspot/pace#a03f1f1de62c9cea6c88b2267b8d7a83858b6cb6",
"slick-carousel": "^1.8.1",
"sweetalert2": "^6.10.1"
},
"devDependencies": {
"#bigcommerce/citadel": "^2.15.1",
"#babel/core": "^7.12.17",
"babel-eslint": "^8.0.1",
"babel-loader": "^7.1.2",
"babel-plugin-dynamic-import-webpack": "^1.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.2.2",
"clean-webpack-plugin": "^0.1.17",
"core-js": "^2.5.0",
"es6-shim": "^0.35.3",
"eslint": "^4.8.0",
"eslint-config-airbnb": "^16.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0",
"grunt": "^1.0.1",
"grunt-eslint": "^20.0.0",
"grunt-karma": "^2.0.0",
"grunt-scss-lint": "^0.5.0",
"grunt-svgstore": "^1.0.0",
"jasmine-core": "^2.2.0",
"karma": "^1.7.0",
"karma-babel-preprocessor": "^7.0.0",
"karma-coverage": "^1.1.1",
"karma-es6-shim": "^1.0.0",
"karma-jasmine": "^1.1.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-sourcemap-loader": "0.3.7",
"karma-verbose-reporter": "0.0.6",
"karma-webpack": "^2.0.4",
"load-grunt-config": "^0.19.2",
"lodash-webpack-plugin": "^0.11.2",
"regenerator-runtime": "^0.11.0",
"time-grunt": "^1.2.2",
"uglify-js": "^3.0.28",
"webpack": "^3.6.0"
}
}
Running node version 12.22.2, npm 8.6.0, stencil cli 6.3.0
I think this is the same issue I got when a folder was named with special characters. Try deleting everything in your directory name after KBBC.
Change
KBBC+V1.4+(March+2020)-1.11.0
To
KBBC
You may also want to change the "name" value in config.json.

ERROR in The target entry-point "ngx-restangular" has missing dependencies: core-js/features/object

When i start 'ionic serve' i have this issue
[ng] ERROR in The target entry-point "ngx-restangular" has missing dependencies:
[ng] - core-js/features/object
And the app don't show in browser.
My Package.json
"dependencies": {
"#angular/common": "~9.0.7",
"#angular/core": "~9.0.7",
"#angular/forms": "~9.0.7",
"#angular/platform-browser": "~9.0.7",
"#angular/platform-browser-dynamic": "~9.0.7",
"#angular/router": "~9.0.7",
"#ionic-native/core": "^5.0.7",
"#ionic-native/geolocation": "^5.27.0",
"#ionic-native/in-app-browser": "^5.35.0",
"#ionic-native/native-geocoder": "^5.27.0",
"#ionic-native/splash-screen": "^5.0.0",
"#ionic-native/status-bar": "^5.0.0",
"#ionic/angular": "^5.0.0",
"cordova-android": "~7.0.0",
"cordova-ios": "^5.1.1",
"cordova-plugin-add-swift-support": "^2.0.2",
"cordova-plugin-geolocation": "^4.1.0",
"cordova-plugin-nativegeocoder": "^3.4.1",
"ngx-permissions": "^8.1.1",
"ngx-restangular": "^5.0.0",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"#angular-devkit/build-angular": "~0.901.5",
"#angular/cli": "9.1.15",
"#angular/compiler": "~9.0.7",
"#angular/compiler-cli": "~9.0.7",
"#angular/language-service": "~9.0.7",
"#ionic/angular-toolkit": "^2.1.1",
"#types/jasmine": "~3.5.0",
"#types/jasminewd2": "~2.0.3",
"#types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"moment": "^2.29.1",
"protractor": "~5.4.3",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.7.3"
},
Help please
I ran
npm i core-js --legacy-peer-deps
and my problem was solved

No visible #interface for 'FIRTrace' declares the selector 'incrementCounterNamed'. FirebasePlugin.m

I have this problem reported in the title, I can't build my app on my iOS, it's the only error that happens.
No visible #interface for 'FIRTrace' declares the selector 'incrementCounterNamed'. FirebasePlugin.m
image error
this is my package.json
{
"dependencies": {
"#angular/common": "^7.2.2",
"#angular/core": "^7.2.15",
"#angular/forms": "^7.2.2",
"#angular/http": "^7.2.2",
"#angular/platform-browser": "^7.2.2",
"#angular/platform-browser-dynamic": "^7.2.2",
"#angular/router": "^7.2.2",
"#ionic-native/app-version": "^5.1.0",
"#ionic-native/base64-to-gallery": "^5.14.0",
"#ionic-native/core": "^5.0.0",
"#ionic-native/device": "^5.2.0",
"#ionic-native/firebase": "^5.3.0",
"#ionic-native/in-app-browser": "^5.15.1",
"#ionic-native/ionic-webview": "^5.1.0",
"#ionic-native/keyboard": "^5.1.0",
"#ionic-native/network": "^5.1.0",
"#ionic-native/push": "^5.2.0",
"#ionic-native/safari-view-controller": "^5.15.1",
"#ionic-native/splash-screen": "^5.0.0",
"#ionic-native/status-bar": "^5.0.0",
"#ionic-native/unique-device-id": "^5.1.0",
"#ionic/angular": "^4.0.0",
"#ionic/storage": "^2.2.0",
"angularfire2": "^5.1.2",
"chart.js": "^2.8.0",
"chartjs-plugin-datalabels": "^0.7.0",
"cordova-android": "^8.0.0",
"cordova-base64-to-gallery": "^4.1.3",
"cordova-ios": "^5.1.1",
"cordova-lib": "^9.0.1",
"cordova-plugin-androidx": "^1.0.2",
"cordova-plugin-androidx-adapter": "^1.1.0",
"cordova-plugin-app-version": "0.1.9",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-firebase": "2.0.5",
"cordova-plugin-inappbrowser": "3.0.0",
"cordova-plugin-ionic-keyboard": "2.1.3",
"cordova-plugin-ionic-webview": "^4.1.1",
"cordova-plugin-network-information": "2.0.1",
"cordova-plugin-safariviewcontroller": "^1.6.0",
"cordova-plugin-splashscreen": "^5.0.3",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-uniquedeviceid": "1.3.2",
"cordova-plugin-whitelist": "1.3.3",
"cordova-sqlite-storage": "3.0.0",
"cordova-support-android-plugin": "1.0.1",
"cordova-support-google-services": "1.1.0",
"core-js": "^2.5.4",
"firebase": "^5.9.2",
"phonegap-plugin-multidex": "1.0.0",
"phonegap-plugin-push": "2.2.3",
"rxjs": "~6.3.3",
"rxjs-compat": "^6.4.0",
"sw-toolbox": "^3.6.0",
"zone.js": "~0.8.29"
},
"devDependencies": {
"#angular-devkit/architect": "~0.12.3",
"#angular-devkit/build-angular": "~0.12.3",
"#angular-devkit/core": "~7.2.3",
"#angular-devkit/schematics": "~7.2.3",
"#angular/cli": "~7.2.3",
"#angular/compiler": "~7.2.2",
"#angular/compiler-cli": "~7.2.2",
"#angular/language-service": "~7.2.2",
"#compodoc/compodoc": "^1.1.9",
"#ionic/angular-toolkit": "~1.4.0",
"#ionic/app-scripts": "^3.2.2",
"#types/chart.js": "^2.8.5",
"#types/jasmine": "~2.8.8",
"#types/jasminewd2": "~2.0.3",
"#types/node": "~10.12.0",
"codelyzer": "~4.5.0",
"cordova-android-support-gradle-release": "~3.0.1",
"cordova-plugin-add-swift-support": "~2.0.2",
"cordova-plugin-firebasex": "~6.0.2",
"cordova-plugin-speechrecognition": "^1.2.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.4",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~8.0.0",
"tslint": "~5.12.0",
"typescript": "~3.1.6",
"xcode": "^2.0.0"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-app-version": {},
"cordova-plugin-device": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-network-information": {},
"cordova-sqlite-storage": {},
"cordova-plugin-uniquedeviceid": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-firebase": {},
"phonegap-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "27.+",
"FCM_VERSION": "11.6.2"
},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-speechrecognition": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "27.+"
},
"cordova-plugin-firebasex": {},
"cordova-plugin-add-swift-support": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-splashscreen": {},
"cordova-base64-to-gallery": {},
"cordova-plugin-safariviewcontroller": {}
}
}
}
I Tried to update my pods and deintegrate, cache clean, but don't works.
Thank you all

React project showing babel plugin errors on Codeship

Attempting to set up my react starter kit project to have CI on codeship, and the project works fine locally. I'm getting the following error ReferenceError: Unknown plugin "syntax-trailing-function-commas" specified.. when I'm attempting to run npm test on codeship.
My test command
mocha --require babel-register
How do I need to configure the codeship environment to get this to work?
package.json
...
"babel": {
"presets": [
"react",
"stage-0"
],
"plugins": [
"syntax-trailing-function-commas",
"transform-async-to-generator",
"transform-es2015-destructuring",
"transform-es2015-parameters",
"transform-es2015-duplicate-keys",
"transform-es2015-modules-commonjs",
"transform-exponentiation-operator",
"transform-runtime"
],
"env": {
"test": {
"plugins": [
"rewire"
]
}
}
},
"dependencies": {
"apollo-client": "^0.5.20",
"babel-polyfill": "6.16.0",
"babel-runtime": "6.18.0",
"bluebird": "3.4.6",
"body-parser": "1.15.2",
"braintree": "^1.46.0",
"classnames": "^2.2.5",
"cookie-parser": "1.4.3",
"core-js": "2.4.1",
"express": "4.14.0",
"express-graphql": "0.6.1",
"express-jwt": "5.1.0",
"fastclick": "1.0.6",
"fbjs": "0.8.6",
"front-matter": "2.1.1",
"graphql": "0.8.2",
"graphql-tag": "^1.1.2",
"history": "4.4.0",
"isomorphic-fetch": "^2.2.1",
"isomorphic-style-loader": "1.1.0",
"jsonwebtoken": "7.1.9",
"markdown-it": "8.1.0",
"moment": "^2.17.1",
"node-fetch": "1.6.3",
"normalize.css": "5.0.0",
"passport": "0.3.2",
"passport-auth0": "^0.6.0",
"passport-facebook": "2.1.1",
"pretty-error": "2.0.2",
"query-string": "4.2.3",
"react": "15.4.1",
"react-apollo": "^0.7.1",
"react-dom": "15.4.1",
"react-redux": "4.4.5",
"react-slick": "^0.14.5",
"react-stack-grid": "^0.1.1",
"redux": "3.6.0",
"redux-actions": "^1.1.0",
"redux-form": "^6.3.2",
"redux-logger": "2.7.4",
"redux-thunk": "2.1.0",
"serialize-javascript": "1.3.0",
"source-map-support": "0.4.6",
"speakingurl": "11.0.0",
"universal-router": "2.0.0",
"uploadcare-widget": "^2.10.2",
"whatwg-fetch": "2.0.1",
"xml2js": "^0.4.17"
},
"devDependencies": {
"assets-webpack-plugin": "^3.5.0",
"autoprefixer": "^6.5.3",
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.8",
"babel-plugin-rewire": "^1.0.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-latest": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.18.0",
"babel-template": "^6.16.0",
"babel-types": "^6.19.0",
"browser-sync": "^2.18.2",
"chai": "^3.5.0",
"css-loader": "^0.26.0",
"enzyme": "^2.6.0",
"eslint": "^3.10.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.7.1",
"extend": "^3.0.0",
"file-loader": "^0.9.0",
"gaze": "^1.1.2",
"git-repository": "^0.1.4",
"glob": "^7.1.1",
"json-loader": "^0.5.4",
"mkdirp": "^0.5.1",
"mocha": "^3.1.2",
"pixrem": "^3.0.2",
"pleeease-filters": "^3.0.0",
"postcss": "^5.2.5",
"postcss-calc": "^5.3.1",
"postcss-color-function": "^2.0.1",
"postcss-custom-media": "^5.0.1",
"postcss-custom-properties": "^5.0.1",
"postcss-custom-selectors": "^3.0.0",
"postcss-flexbugs-fixes": "^2.0.0",
"postcss-loader": "^1.1.1",
"postcss-media-minmax": "^2.1.2",
"postcss-nested": "^1.0.0",
"postcss-nesting": "^2.3.1",
"postcss-partial-import": "^2.1.0",
"postcss-pseudoelements": "^3.0.0",
"postcss-selector-matches": "^2.0.5",
"postcss-selector-not": "^2.0.0",
"postcss-url": "^5.1.2",
"raw-loader": "^0.5.1",
"react-addons-test-utils": "15.4.0",
"react-deep-force-update": "^2.0.1",
"react-hot-loader": "^3.0.0-beta.6",
"redbox-react": "^1.3.3",
"redux-mock-store": "^1.2.1",
"rimraf": "^2.5.4",
"sinon": "^2.0.0-pre.3",
"stylelint": "^7.6.0",
"stylelint-config-standard": "^15.0.0",
"url-loader": "^0.5.7",
"webpack": "^1.13.3",
"webpack-hot-middleware": "^2.13.2",
"webpack-middleware": "^1.5.1"
},