Related
spent ages on this error today and cannot figure it out at all.
It was working fine and then I installed nativewind
Now, I keep getting the following errors after running npm run ios:
Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication().
Module has not been registered as callable.
Registered callable JavaScript modules (n = 11):
Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter,
RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an
early initialization error when loading React Native., js engine: hermes
My babel.config.js:
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['nativewind/babel', 'react-native-reanimated/plugin'],
};
My package.json:
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios --simulator='iPhone 13'",
"start": "react-native start",
"test": "jest",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"link": "react-native link"
},
"dependencies": {
"#eva-design/eva": "^2.1.1",
"#react-native-async-storage/async-storage": "^1.17.10",
"#react-native-community/blur": "^4.2.0",
"#react-native-community/masked-view": "^0.1.11",
"#react-navigation/bottom-tabs": "^6.4.0",
"#react-navigation/drawer": "^6.5.0",
"#react-navigation/native": "^6.0.13",
"#react-navigation/native-stack": "^6.9.0",
"#stripe/stripe-react-native": "^0.19.0",
"#supabase/supabase-js": "^2.0.0",
"#ui-kitten/components": "^5.1.2",
"#ui-kitten/metro-config": "^5.1.2",
"base-64": "^1.0.0",
"base64-arraybuffer": "^1.0.2",
"moment": "^2.29.4",
"nativewind": "^2.0.11",
"postcode": "^5.1.0",
"react": "18.1.0",
"react-hook-form": "^7.36.1",
"react-native": "0.70.0",
"react-native-actions-sheet": "^0.8.8",
"react-native-compressor": "^1.6.1",
"react-native-draggable-grid": "^2.1.6",
"react-native-gesture-handler": "^2.1.1",
"react-native-image-picker": "^4.10.0",
"react-native-linear-gradient": "^2.6.2",
"react-native-reanimated": "^2.13.0",
"react-native-reanimated-carousel": "^3.0.6",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "^3.17.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "^13.4.0",
"react-native-toast-message": "^2.1.5",
"react-native-url-polyfill": "^1.3.0",
"use-debounce": "^8.0.4",
"zustand": "^4.1.1"
},
"devDependencies": {
"#babel/core": "^7.12.9",
"#babel/runtime": "^7.12.5",
"#react-native-community/eslint-config": "^2.0.0",
"#tsconfig/react-native": "^2.0.2",
"#types/jest": "^26.0.23",
"#types/react-native": "^0.70.0",
"#types/react-test-renderer": "^18.0.0",
"#types/react-timeago": "^4.1.3",
"#typescript-eslint/eslint-plugin": "^5.37.0",
"#typescript-eslint/parser": "^5.37.0",
"babel-jest": "^26.6.3",
"eslint": "^7.32.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.72.1",
"react-test-renderer": "18.1.0",
"tailwindcss": "^3.2.4",
"typescript": "^4.8.3"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
I have tried:
restarting my machine
npm start -- --reset-cache
cd ios pod install
uninstalling nativewind (even when uninstalled, the error now persists, so I can't get back to my working version beforehand)
I'm working on my project using React native. When I do the project in debug mode, the app works well on both simulator and real device.
However, it doesn't work in release mode (I change the release mode in Xcode edit scheme), both simulator and real device. The odd thing is that it doesnt show any errors at all. It stucks on the native launching screen (Not the splash screen). As far as I know, it does not even run the code inside index.js file.
Has anyone experienced this before?
Looking forward to having your answers.
Here's my package.json file
{
"name": "PodRecycling",
"version": "1.0",
"private": true,
"scripts": {
"8081": "adb reverse tcp:8081 tcp:8081 && yarn start",
"splash": "yarn react-native generate-bootsplash splash/ic_koi_fish.png \\--background-color=FFFFFF \\ --logo-width=300 \\--assets-path=assets \\--flavor=main",
"clean-android": "cd android && ./gradlew clean && cd ..",
"clean-ios": "cd ios && xcodebuild clean && cd ..",
"android": "yarn clean-android && npx react-native run-android ",
"ios": "yarn clean-ios && npx react-native run-ios",
"android-release": "clean-android && npx react-native run-android --variant=release",
"start": "npx react-native start --reset-cache",
"format": "prettier --write **/*.{ts,tsx,js,json,md}",
"check-code": "prettier --check **/*.{ts,tsx,js,json,md}",
"test": "jest",
"li": "dot_clean -n . && node generateAssetResource.ts",
"lint": "eslint index.js src --fix --ext .js,.ts,.tsx",
"postinstall": "patch-package",
"pod": "cd ios && pod install && cd ..",
"reverse": "adb reverse tcp:9090 tcp:9090; adb reverse tcp:19001 tcp:19001;",
"cp_all": "yarn cpi && yarn cpa",
"rlink": "npx react-native link",
"assembleRelease": "cd android && ./gradlew clean && ./gradlew assembleRelease && cd .."
},
"dependencies": {
"#fortawesome/fontawesome-svg-core": "^1.2.36",
"#fortawesome/free-solid-svg-icons": "^5.15.4",
"#fortawesome/pro-light-svg-icons": "^5.15.4",
"#fortawesome/pro-regular-svg-icons": "^5.15.4",
"#fortawesome/pro-solid-svg-icons": "^5.15.4",
"#fortawesome/react-native-fontawesome": "^0.2.7",
"#react-native-community/blur": "^3.6.0",
"#react-native-community/clipboard": "^1.5.1",
"#react-native-community/masked-view": "^0.1.10",
"#react-native-community/netinfo": "^5.9.7",
"#react-native-community/push-notification-ios": "^1.10.1",
"#react-native-community/toolbar-android": "^0.2.1",
"#react-native-firebase/app": "^12.9.2",
"#react-native-firebase/auth": "^12.9.2",
"#react-native-firebase/crashlytics": "^12.9.2",
"#react-native-firebase/dynamic-links": "^12.9.2",
"#react-native-firebase/firestore": "^12.9.2",
"#react-native-firebase/messaging": "^12.9.2",
"#react-navigation/bottom-tabs": "^5.11.8",
"#react-navigation/core": "^5.12.1",
"#react-navigation/native": "^5.9.4",
"#react-navigation/stack": "^5.14.5",
"#reduxjs/toolkit": "^1.5.0",
"axios": "^0.19.0",
"deprecated-react-native-listview": "^0.0.6",
"firebase-admin": "^10.0.0",
"formik": "^2.2.9",
"lodash.debounce": "^4.0.8",
"moment": "^2.29.1",
"native-base": "^2.15.2",
"npm": "^6.14.6",
"react": "17.0.1",
"react-fast-compare": "^3.2.0",
"react-hook-form": "^7.7.0",
"react-native": "0.64.2",
"react-native-actionsheet": "^2.4.2",
"react-native-bootsplash": "^3.2.3",
"react-native-camera": "^4.2.1",
"react-native-camera-hooks": "^0.5.2",
"react-native-elements": "^1.2.7",
"react-native-fast-image": "^8.1.5",
"react-native-gesture-handler": "^1.10.3",
"react-native-i18n": "^2.0.15",
"react-native-image-crop-picker": "^0.36.0",
"react-native-image-picker": "^2.3.0",
"react-native-image-resizer": "^1.2.3",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-indicators": "^0.17.0",
"react-native-keyboard-manager": "^6.5.4-1",
"react-native-modal": "^11.5.6",
"react-native-onesignal": "^3.4.2",
"react-native-permissions": "^2.2.2",
"react-native-progress": "^4.1.2",
"react-native-push-notification": "^8.1.1",
"react-native-qrcode-scanner": "^1.5.4",
"react-native-reanimated": "^2.0.0-rc.3",
"react-native-root-toast": "^3.2.1",
"react-native-safe-area-context": "^3.1.1",
"react-native-screens": "^3.3.0",
"react-native-sensitive-info": "^6.0.0-alpha.9",
"react-native-slider": "^0.11.0",
"react-native-svg": "^12.1.1",
"react-native-svg-transformer": "^0.14.3",
"react-native-vector-icons": "^6.6.0",
"react-native-webview": "^10.9.1",
"react-redux": "^7.1.1",
"reactotron-react-native": "5.0.0",
"reactotron-redux": "^3.1.2",
"reactotron-redux-saga": "^4.2.2",
"redux": "^4.0.4",
"redux-devtools-extension": "^2.13.8",
"redux-saga": "^1.1.1",
"redux-thunk": "^2.3.0",
"whatwg-url": "^11.0.0",
"yup": "^0.32.9"
},
"devDependencies": {
"#babel/core": "^7.12.9",
"#babel/runtime": "^7.12.5",
"#react-native-community/eslint-config": "^2.0.0",
"#types/jest": "^26.0.20",
"#types/react-native": "^0.63.51",
"#types/react-redux": "^7.1.16",
"#types/react-test-renderer": "^16.9.2",
"#types/redux-logger": "^3.0.8",
"#types/whatwg-url": "^8.2.1",
"#typescript-eslint/eslint-plugin": "^4.18.0",
"#typescript-eslint/parser": "^4.26.1",
"babel-jest": "^26.6.3",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-alias": "^1.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.4.0",
"hjson": "^3.2.2",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.64.0",
"patch-package": "^6.2.2",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.3.1",
"prettier-eslint": "^12.0.0",
"prettier-eslint-cli": "^5.0.1",
"react-test-renderer": "17.0.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.2.3"
},
"jest": {
"preset": "react-native",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
I'm using Xcode 13.2.1, macos 11.6.2 (BigSur). Tested app on ios 15.0 and 13.0
Failed to create an image on the staging server with the below error.
Browserslist: caniuse-lite is outdated. Please run next command yarn upgrade caniuse-lite browserslist
Here is my package.json
{
"scripts": {
"start": "webpack-dev-server --host=0.0.0.0 --content-base=public",
"jest": "jest --no-cache --runInBand",
"lint": "eslint .",
"test": "yarn lint && yarn flow && yarn jest",
"fix": "eslint . --fix"
},
"dependencies": {
"#babel/core": "^7.1.6",
"#babel/plugin-proposal-class-properties": "^7.1.0",
"#babel/plugin-proposal-json-strings": "^7.0.0",
"#babel/plugin-syntax-dynamic-import": "^7.0.0",
"#babel/plugin-syntax-import-meta": "^7.0.0",
"#babel/polyfill": "^7.0.0",
"#babel/preset-env": "^7.1.6",
"#babel/preset-flow": "^7.0.0",
"#babel/preset-react": "^7.0.0",
"axios": "^0.18.0",
"babel-loader": "^8.0.4",
"bluebird": "^3.5.3",
"circle-to-polygon": "^1.0.2",
"classnames": "^2.2.6",
"color-rgba": "^2.1.0",
"css-loader": "^1.0.1",
"eskape": "^1.2.0",
"flow-bin": "^0.89.0",
"flow-typed": "^2.5.1",
"fuse.js": "^3.4.2",
"highcharts": "^7.0.0",
"highcharts-react-official": "^2.0.0",
"informed": "^1.10.12",
"json-loader": "^0.5.7",
"lodash": "^4.17.11",
"mapbox-gl": "^0.53.0-beta.1",
"mixpanel-browser": "^2.26.0",
"moment": "^2.23.0",
"node-sass": "^4.14.1",
"normalize.css": "^8.0.1",
"prop-types": "^15.6.2",
"react": "^16.6.3",
"react-aria-menubutton": "^6.1.0",
"react-color": "^2.17.0",
"react-dom": "^16.6.3",
"react-ga": "^2.5.6",
"react-helmet": "^5.2.0",
"react-map-gl": "^4.0.8",
"react-portal": "^4.2.0",
"react-redux": "^6.0.0",
"react-router-dom": "^4.3.1",
"react-table": "^6.8.6",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.7",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"svg-react-loader": "^0.4.6",
"uid-safe": "^2.1.5",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10",
"yaml-loader": "^0.5.0"
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^23.6.0",
"babel-polyfill": "^6.26.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.7.1",
"eslint": "^5.9.0",
"eslint-config-prettier": "^3.3.0",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard-react": "^7.0.2",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^22.1.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-standard": "^4.0.0",
"expect": "^23.6.0",
"file-loader": "^3.0.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^23.6.0",
"lodash-match-pattern": "^2.0.1",
"prettier": "^1.15.2",
"sinon": "^7.2.2",
"yaml-jest": "^1.0.5"
},
"license": "UNLICENSED",
"private": true
}
I am new to docker and don't know how to resolve this error.
The project is on Reactjs, recently I have updated the node-saas version to 4.14.1 and after that, I am facing this error.
I am getting the following error during an ios build for a file that belongs to a node_modules package:
bundling failed: SyntaxError:
/Users/user148634/Desktop/mobile-ui/PriceInsight_app/node_modules/react-native/node_modules/react-native/Libraries/Components/Switch/Switch.js:
Support for the experimental syntax 'nullishCoalescingOperator' isn't
currently enabled (167:52):
According to this message, the file is in the following path:
node_modules/react-native/node_modules/react-native/Libraries/Components/Switch/Switch.js
However, I can see the file in the following path:
node_modules/react-native/Libraries/Components/Switch/Switch.js
(the folder node_modules/react-native/node_modules/react-native does not exist).
I tried to modify node_modules/react-native/Libraries/Components/Switch/Switch.js but it doesn't have any effect and I get the same error during build.
Any idea why a non-existent path is displayed? Any idea how I modify the file so that it affects the build?
Here is my package.json file:
{
"name": "newapp",
"version": "0.0.2",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest --verbose --coverage",
"test:update": "jest --verbose --coverage --updateSnapshot",
"test:watch": "jest --verbose --watch",
"coverage": "jest --verbose --coverage && xdg-open ./coverage/lcov-report/index.html",
"lint": "npx eslint --fix ./src/*"
},
"dependencies": {
"adm-zip": "^0.4.13",
"apollo-boost": "0.1.17",
"axios": "^0.18.0",
"babel": "^6.23.0",
"buffer": "5.1.0",
"cross-fetch": "^3.0.0",
"enzyme": "^3.3.0",
"fastfall": "^1.5.1",
"got": "^9.5.1",
"graphql": "0.13.2",
"graphql-tag": "2.10.0",
"jasmine-react-helpers": "^0.2.2",
"link": "^0.1.5",
"lodash": "4.17.5",
"moment": "2.21.0",
"plist": "^3.0.1",
"query-string": "^6.1.0",
"react": "16.2.0",
"react-addons-test-utils": "^15.6.2",
"react-apollo": "2.2.4",
"react-dom": "^16.7.0",
"react-native": "^0.57.0",
"react-native-elements": "0.19.0",
"react-native-fabric": "^0.5.2",
"react-native-fbsdk": "^0.6.3",
"react-native-htmlview": "^0.12.1",
"react-native-link-preview": "^1.3.5",
"react-native-login": "^0.0.1-alpha.2",
"react-native-login-keycloak": "^1.0.2",
"react-native-onesignal": "3.2.6",
"react-native-push-notification": "https://github.com/Dhanraj-bidchat/react-native-push-notification.git",
"react-native-sleek-loading-indicator": "^0.1.3",
"react-native-spinkit": "^1.1.1",
"react-native-svg": "6.2.2",
"react-native-swipe-cards": "^0.1.1",
"react-native-swiper": "1.5.13",
"react-native-vector-icons": "4.5.0",
"react-navigation": "1.5.6",
"react-redux": "5.0.7",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-persist": "5.9.1",
"redux-thunk": "^2.2.0",
"victory-native": "0.17.2",
"whatwg-fetch": "2.0.4",
"xcode": "^1.1.0"
},
"devDependencies": {
"#babel/plugin-proposal-optional-chaining": "^7.2.0",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.4",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"babel-preset-env": "^1.7.0",
"babel-preset-react-native": "5.0.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.4",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-only-warn": "^1.0.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-react": "^7.9.1",
"eslint-plugin-standard": "^3.1.0",
"jest": "^23.5.0",
"jest-resolve": "^23.0.0",
"jest-serializer-enzyme": "^1.0.0",
"react-native-mock-render": "^0.0.26",
"react-test-renderer": "^16.3.2",
"redux-mock-store": "^1.5.1",
"sinon": "^5.0.10"
},
"jest": {
"preset": "react-native",
"setupFiles": [
"./jest-setup.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"modulePaths": [
"<rootDir>/src",
"<rootDir>/node_modules"
],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.jsx?$": "babel-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!(react-native-safe-area-view|react-navigation|react-native-htmlview|react-native-fabric|react-native-login|react-native-elements|react-native-vector-icons|react-native-spinkit|victory-pie|victory-chart|victory-core|react-native-svg|react-native|redux-persist|victory-native|react-native-swipe-cards|react-native-swiper)/)"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/assetsTransformer.js",
"\\.(css|less)$": "<rootDir>/assetsTransformer.js"
}
}
}
change .babelrc to
{
"presets": ["module:metro-react-native-babel-preset"]
}
I am trying to install Angular CLI using Visual Studio 2017 but it throws an exception while running the command.
> .npm [On.Store.UI] install -g #angular/cli
C:\Users\child\AppData\Roaming\npm\ng -> C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\bin\ng
> node-sass#4.5.3 install C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\child\AppData\Roaming\npm-cache\node-sass\4.5.3\win32-x64-48_binding.node
> node-sass#4.5.3 postinstall C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\node-sass
> node scripts/build.js
Binary found at C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\node-sass\vendor\win32-x64-48\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp#0.6.33 (node_modules\#angular\cli\node_modules\fsevents\node_modules\node-pre-gyp):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\fsevents\node_modules\node-pre-gyp' -> 'C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\fsevents\node_modules\.node-pre-gyp.DELETE'
+ #angular/cli#1.1.1
added 823 packages and updated 1 package in 167.125s
[On.Store.UI] install -g #angular/cli successfully completed
> .npm [On.Store.UI] install -g #angular/cli
C:\Users\child\AppData\Roaming\npm\ng -> C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\bin\ng
> fsevents#1.1.1 install C:\Users\child\AppData\Roaming\npm\node_modules\#angular\cli\node_modules\fsevents
> node install
+ #angular/cli#1.1.1
added 120 packages, removed 1 package and updated 1 package in 83.667s
[On.Store.UI] install -g #angular/cli successfully completed
>
My package json is :
{
"name": "#angular/cli",
"version": "1.1.1",
"description": "CLI tool for Angular",
"main": "packages/#angular/cli/lib/cli/index.js",
"trackingCode": "UA-8594346-19",
"bin": {
"ng": "./bin/ng"
},
"keywords": [],
"scripts": {
"build": "node scripts/run-tool.js publish build",
"test": "npm-run-all -c test:packages test:cli test:deps test:licenses test:messages",
"e2e": "npm run test:e2e",
"e2e:nightly": "node tests/run_e2e.js --nightly",
"test:e2e": "node tests/run_e2e.js",
"test:cli": "node tests/runner",
"test:deps": "node scripts/publish/validate_dependencies.js",
"test:inspect": "node --inspect --debug-brk tests/runner",
"test:licenses": "node scripts/test-licenses.js",
"test:messages": "node scripts/test-commit-messages.js",
"test:packages": "node scripts/run-packages-spec.js",
"eslint": "eslint .",
"tslint": "tslint \"**/*.ts\" -c tslint.json -e \"**/config/schema.d.ts\" -e \"**/tests/**\" -e \"**/blueprints/*/files/**/*.ts\" -e \"node_modules/**\" -e \"tmp/**\" -e \"dist/**\"",
"lint": "npm-run-all -c eslint tslint",
"tool": "node scripts/run-tool.js"
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular-cli.git"
},
"engines": {
"node": ">= 6.9.0",
"npm": ">= 3.0.0"
},
"author": "Angular Authors",
"license": "MIT",
"bugs": {
"url": "https://github.com/angular/angular-cli/issues"
},
"homepage": "https://github.com/angular/angular-cli",
"dependencies": {
"autoprefixer": "^6.5.3",
"chalk": "^1.1.3",
"common-tags": "^1.3.1",
"css-loader": "^0.28.1",
"cssnano": "^3.10.0",
"debug": "^2.1.3",
"denodeify": "^1.2.1",
"diff": "^3.1.0",
"ember-cli-normalize-entity-name": "^1.0.0",
"ember-cli-string-utils": "^1.0.0",
"enhanced-resolve": "^3.1.0",
"exports-loader": "^0.6.3",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.10.0",
"fs-extra": "~3.0.1",
"get-caller-file": "^1.0.0",
"glob": "^7.0.3",
"html-webpack-plugin": "^2.19.0",
"inflection": "^1.7.0",
"inquirer": "^3.0.0",
"isbinaryfile": "^3.0.0",
"istanbul-instrumenter-loader": "^2.0.0",
"json-loader": "^0.5.4",
"less": "^2.7.2",
"less-loader": "^4.0.2",
"loader-utils": "^1.0.2",
"license-webpack-plugin": "^0.4.3",
"lodash": "^4.11.1",
"magic-string": "^0.19.0",
"memory-fs": "^0.4.1",
"minimatch": "^3.0.3",
"node-modules-path": "^1.0.0",
"nopt": "^4.0.1",
"opn": "4.0.2",
"portfinder": "~1.0.12",
"postcss-loader": "^1.3.3",
"postcss-url": "^5.1.2",
"raw-loader": "^0.5.1",
"resolve": "^1.1.7",
"rimraf": "^2.5.3",
"rsvp": "^3.0.17",
"rxjs": "^5.0.1",
"sass-loader": "^6.0.3",
"script-loader": "^0.7.0",
"semver": "^5.3.0",
"silent-error": "^1.0.0",
"source-map": "^0.5.6",
"source-map-loader": "^0.2.0",
"style-loader": "^0.13.1",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"temp": "0.8.3",
"typescript": "~2.3.1",
"url-loader": "^0.5.7",
"walk-sync": "^0.3.1",
"webpack": "~2.4.0",
"webpack-dev-middleware": "^1.10.2",
"webpack-dev-server": "~2.4.5",
"webpack-merge": "^2.4.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"#angular/compiler": "^4.0.0",
"#angular/compiler-cli": "^4.0.0",
"#angular/core": "^4.0.0",
"#types/chai": "^3.4.32",
"#types/chalk": "^0.4.28",
"#types/common-tags": "^1.2.4",
"#types/denodeify": "^1.2.29",
"#types/express": "^4.0.32",
"#types/fs-extra": "~3.0.2",
"#types/glob": "^5.0.29",
"#types/jasmine": "~2.2.0",
"#types/lodash": "4.14.50",
"#types/minimist": "^1.2.0",
"#types/mock-fs": "^3.6.30",
"#types/node": "^6.0.36",
"#types/request": "0.0.39",
"#types/rimraf": "0.0.28",
"#types/semver": "^5.3.30",
"#types/source-map": "^0.5.0",
"#types/webpack": "^2.2.15",
"chai": "^3.5.0",
"conventional-changelog": "^1.1.0",
"dtsgenerator": "^0.9.1",
"eslint": "^3.11.0",
"express": "^4.14.0",
"jasmine": "^2.4.1",
"jasmine-spec-reporter": "^3.2.0",
"minimist": "^1.2.0",
"mocha": "^3.2.0",
"mock-fs": "^4.0.0",
"npm-run": "^4.1.0",
"npm-run-all": "^4.0.0",
"object-assign": "^4.0.1",
"request": "^2.74.0",
"resolve-bin": "^0.4.0",
"rewire": "^2.5.1",
"spdx-satisfies": "^0.1.3",
"through": "^2.3.6",
"tree-kill": "^1.0.0",
"ts-node": "^2.0.0",
"tslint": "^5.1.0"
},
"optionalDependencies": {
"node-sass": "^4.3.0"
}
}
=======tsConfig.js
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"compileOnSave": true,
"exclude": [
"node_modules"
]
}
my visual code compiler errors are mentioned below :
Severity Code Description Project File Line Suppression State
Error TS2304 Cannot find name 'Promise'. On.Store.UI (tsconfig project) L:\ESaleStore\On.Store.UI\src\On.Store.UI\node_modules\#angular\common\src\location\platform_location.d.ts 51 Active
Error TS2304 Cannot find name 'Promise'. On.Store.UI (tsconfig project) L:\ESaleStore\On.Store.UI\src\On.Store.UI\node_modules\#angular\common\src\location\platform_location.d.ts 51 Active
Error TS2304 Cannot find name 'Promise'. On.Store.UI (tsconfig project) L:\ESaleStore\On.Store.UI\src\On.Store.UI\node_modules\#angular\common\src\pipes\async_pipe.d.ts 45 Active
Error TS2304 Cannot find name 'Promise'. On.Store.UI (tsconfig project) L:\ESaleStore\On.Store.UI\src\On.Store.UI\node_modules\#angular\compiler\src\aot\compiler_host.d.ts 25 Active
Error TS2339 Property 'find' does not exist on type 'BillingPackage[]'. On.Store.UI (tsconfig project) L:\ESaleStore\On.Store.UI\src\On.Store.UI\wwwroot\app\Billing\Billing.Service.ts 27 Active