WebStorm tslint initialization error from node_modules file

Using the 10/3/2018 version of WebStorm.

I keep getting this error every time I edit a .ts or .tsx file:

TSLint: Initialization error (tslint). /Users/mpelzsherman/source/my_project/node_modules/chalk/index.js

1. Why is tslint analyzing files in node_modules?

2. Why is tslint analyzing .js a file?

 

Thanks!

0
8 comments

Error indicates that the TSLint service can't be started, it's not trying to lint your .js files.

Please provide a screenshot of error message (as it's displayed in console) plus your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files), package.json and tslint.json files

0

tslint.json:

{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"lines-between-class-members": true,
"newline-before-return": true,
"object-literal-key-quotes": [true, "as-needed"],
"quotemark": [true, "single", "jsx-double"],
"semicolon": [true, "never"],
"trailing-comma": [
true,
{
"multiline": "always",
"singleline": "never",
"esSpecCompliant": true
}
],
"member-access": false,
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"]
},
"rulesDirectory": [
"node_modules/tslint-lines-between-class-members"
]
}

package.json:

{
"name": "ag.js",
"version": "0.0.0",
"description": "AG. Rebuilt.",
"main": "bin/server.js",
"moduleRoots": [
"src"
],
"private": true,
"scripts": {
"clean": "rm -rf dist",
"build": "yarn run clean && concurrently --raw -s all \"yarn run build:client\" \"yarn run build:server\"",
"build:client": "BABEL_ENV=client NODE_ENV=production node bin/build --ctx client",
"build:server": "BABEL_ENV=server NODE_ENV=production node bin/build --ctx server",
"dev": "yarn run clean && yarn run watch",
"type-check": "node generateCssTypes && yarn tsc",
"dev:analyzer": "BUNDLE_ANALYZER=true yarn run dev",
"dev:logger:redux": "REDUX_LOGGER=true yarn run dev",
"dev:logger": "APPLICATIONS_AG_LOG_LEVEL=info yarn run dev | bunyan",
"dev:logger:debug": "APPLICATIONS_AG_LOG_LEVEL=debug yarn run dev | bunyan",
"esprint": "esprint check && yarn run tslint",
"flamegraph": "mkdir flamegraphs && yarn run build && 0x -o --output-dir='flamegraphs/{timestamp}' -P 'autocannon -a 200 localhost:$PORT/apartments/Georgia/Atlanta/' bin/server",
"flamegraph:prod": "NODE_ENV=production yarn run flamegraph",
"generateCssTypes": "node generateCssTypes",
"info": "npm-scripts-info",
"lint": "eslint --ext=.js src test tests && yarn run tslint",
"lint:fix": "yarn run lint -- --fix",
"prod": "NODE_ENV=production yarn run build && yarn run start",
"prod:local": "HOST=0.0.0.0 PROD_LOCAL_ENV=production_local yarn run build && yarn run start",
"prod:analyzer": "BUNDLE_ANALYZER=true yarn run prod",
"start": "node bin/server",
"storybook": "BABEL_ENV=client NODE_ENV=development start-storybook -p 9006",
"storybook:build": "BABEL_ENV=client NODE_ENV=development build-storybook",
"test": "concurrently 'yarn run test:mocha' 'yarn run test:jest'",
"test:mocha": "BABEL_ENV=test NODE_PATH=./src:./test mocha src/**/__tests__/**/*-test.js",
"test:jest": "BABEL_ENV=test NODE_PATH=./src:./test/jest jest --config jest.config.json",
"test:amp": "BABEL_ENV=test NODE_PATH=./integrationTests/ampValidation:./test mocha --require integrationTests/ampValidation/setup.js integrationTests/**/*.js",
"test:amp:local": "LAUNCH_URL=https://local.ag.com NODE_ENV=test NODE_PATH=./integrationTests/ampValidation:./test mocha --require integrationTests/ampValidation/setup.js integrationTests/**/*.js",
"test:min": "BABEL_ENV=test NODE_PATH=./src:./test mocha -R min src/**/__tests__/**/*.js && yarn run test:jest",
"test:no-timeouts": "NODE_ENV=test NODE_PATH=./src:./test mocha src/**/__tests__/**/*.js --no-timeouts && yarn run test:jest",
"test:wtf": "BABEL_ENV=test NODE_PATH=./src:./test wtfnode ~/source/ag.js/node_modules/mocha/bin/_mocha --require babel-core/register --timeout 5000 --require ./test/setup.js src/**/__tests__/**/*.js",
"test:e2e": "./bin/test-e2e.sh",
"test:e2e:large:local": "LAUNCH_URL=https://local.ag.com nightwatch --group large --group shared -e chrome_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:small:local": "LAUNCH_URL=https://local.ag.com nightwatch --group small --group shared -e chrome_mobile_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:large:local:4": "LAUNCH_URL=https://local.ag.com nightwatch --group large --group shared -e chrome_4workers --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:small:local:4": "LAUNCH_URL=https://local.ag.com nightwatch --group small --group shared -e chrome_mobile_4workers --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:large:local:2": "LAUNCH_URL=https://local.ag.com nightwatch --group large --group shared -e chrome_2workers --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:small:local:2": "LAUNCH_URL=https://local.ag.com nightwatch --group small --group shared -e chrome_mobile_2workers --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:large": "nightwatch --group large --group shared -e chrome_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:small": "nightwatch --group small --group shared -e chrome_mobile_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD --tags=stableLocalChrome,stableCD",
"test:e2e:large:prod": "LAUNCH_URL=https://www.apartmentguide.com nightwatch --group large --group shared -e chrome_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD,quarantineProd",
"test:e2e:small:prod": "LAUNCH_URL=https://www.apartmentguide.com nightwatch --group small --group shared -e chrome_mobile_parallel --suiteRetries=2 --skiptags quarantine,quarantineCD,quarantineProd",
"test:e2e:large:prod:quarantine": "LAUNCH_URL=https://www.apartmentguide.com nightwatch --group large --group shared -e chrome --tag quarantine --tag quarantineProd",
"test:e2e:small:prod:quarantine": "LAUNCH_URL=https://www.apartmentguide.com nightwatch --group small --group shared -e chrome_mobile --tag quarantine --tag quarantineProd",
"test:e2e:large:quarantine": "nightwatch --group large --group shared -e chrome --tag quarantine --tag quarantineQA",
"test:e2e:large:quarantine:sauce:firefox": "LAUNCH_URL=https://www.qa.apartmentguide.com SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 nightwatch --group large --group shared -e saucelabs_win10_firefox --tag quarantine --tag quarantineQA",
"test:e2e:small:quarantine": "nightwatch --group small --group shared -e chrome_mobile --tag quarantine --tag quarantineQA --tag androidQuarantine",
"test:e2e:small:quarantine:sauce:android": "LAUNCH_URL=https://www.qa.apartmentguide.com SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 nightwatch --group small --group shared -e saucelabs_Google_API_Emulator --tag quarantine --tag quarantineQA --tag quarantineAndroid",
"test:e2e:small:quarantine:sauce:ios": "LAUNCH_URL=https://www.qa.apartmentguide.com SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 nightwatch --group small --group shared -e saucelabs_iPhone_X --tag quarantine --tag quarantineQA --tag quarantineIOS",
"test:e2e:large:4": "nightwatch --group large --group shared -e chrome_4workers --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:small:4": "nightwatch --group small --group shared -e chrome_mobile_4workers --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:large:2": "nightwatch --group large --group shared -e chrome_2workers --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:small:2": "nightwatch --group small --group shared -e chrome_mobile_2workers --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:large:serial": "nightwatch --group large --group shared -e chrome --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:small:serial": "nightwatch --group small --group shared -e chrome_mobile --suiteRetries=2 --skiptags quarantine,quarantineCD",
"test:e2e:sauce:large:qa:firefox": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_win10_firefox --tags=stableFirefox,stableQA",
"test:e2e:sauce:large:qa:ie11": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_win10_ie11 --tags=stableIE11,stableQA",
"test:e2e:sauce:large:qa:safari": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_osx_safari --tags=stableSafari,stableQA",
"test:e2e:sauce:large:prod": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_win10_chrome --tags=stableFirefox,stableProd",
"test:e2e:sauce:large:qa:chrome": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=large --group shared --local_browsers=saucelabs_win10_chrome --tags=stableChrome,stableQA",
"test:e2e:sauce:small:qa": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Google_API_Emulator --tags=stableAndroid,stableQA",
"test:e2e:sauce:small:qa:ios": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_iPhone_X --tags=stableIOS,stableQA --skiptags=quarantineQA,quarantineIOS",
"test:e2e:sauce:small:qa:android6": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Android_Emulator_6_0 --tags=stableAndroid,stableQA",
"test:e2e:sauce:small:qa:galaxys8": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.qa.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Galaxy_S8_Emulator --tags=stableAndroid,stableQA",
"test:e2e:sauce:small:prod:android": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 LAUNCH_URL=https://www.apartmentguide.com node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Google_API_Emulator --tags=stableAndroid,stableProd",
"test:e2e:sauce:large:critical": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_win10_chrome --tags=critical,stableCD",
"test:e2e:sauce:small:critical": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Google_API_Emulator --tags=critical,stableCD",
"test:e2e:sauce:large": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --sauce --group=large --group shared --local_browsers=saucelabs_win10_chrome --tags=stableChrome,stableCD --max_workers=15 --bail_early --early_bail_threshold=0.20 --early_bail_min_attempts=20",
"test:e2e:sauce:small": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_win10_chrome_mobile --tags=stableAndroid,stableCD --max_workers=15 --bail_early --early_bail_threshold=0.20 --early_bail_min_attempts=20",
"test:e2e:sauce:small:ios": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_iPhone_X --tags=stableIOS,stableCD",
"test:e2e:sauce:small:android": "SAUCE_USERNAME=agjstester SAUCE_ACCESS_KEY=58021472-7547-4938-9f2d-bf92a1626f23 node -r ./tests/setup $(yarn bin)/magellan --group=small --group shared --local_browsers=saucelabs_Android_Emulator_6_0 --tags=stableAndroid,stableCD",
"tslint": "tslint -p . -c tslint.json",
"build:dll": "yarn webpack --config webpack/webpack.library.js",
"watch": "concurrently --raw \"yarn run watch:client\" \"yarn run watch:server\"",
"watch:client": "BABEL_ENV=client NODE_ENV=development node bin/watch-client",
"watch:lint": "esw -w --ext=.js src test",
"watch:server": "BABEL_ENV=server NODE_ENV=development node bin/watch-server",
"watch:styleguide": "rsg -c styleguide.js 'src/components/!(__tests__)/*.js' -d",
"watch:test": "yarn run test -- --watch",
"watch:jest": "yarn run test:jest --watch"
},
"repository": {
"type": "git",
"url": "https://github.com/rentpath/ag.js.git"
},
"author": "Caleb Wright, Colin Rymer",
"bugs": {
"url": "https://github.com/rentpath/ag.js/issues"
},
"homepage": "https://github.com/rentpath/ag.js#readme",
"dependencies": {
"@babel/polyfill": "^7.0.0-beta.55",
"@babel/register": "^7.0.0-beta.55",
"@babel/runtime": "^7.0.0-beta.55",
"@optimizely/optimizely-sdk": "^2.1.2",
"@rentpath/event-tracker": "6.8.0",
"@rentpath/react-redux-router": "3.1.0",
"@rentpath/react-ui-ag": "11.2.0",
"@rentpath/react-ui-core": "16.2.5",
"@turf/bbox": "^6.0.1",
"asset-require-hook": "^1.2.0",
"body-parser": "^1.18.3",
"btoa": "^1.2.1",
"bunyan": "^1.8.12",
"classnames": "^2.2.6",
"cookie": "0.3.1",
"core-js": "^2.5.7",
"custom-event-polyfill": "^1.0.6",
"date-fns": "2.0.0-alpha.16",
"device": "^0.3.9",
"domready": "1.0.8",
"element-closest": "^2.0.2",
"enzyme-adapter-react-16": "^1.5.0",
"es6-promise": "^4.2.4",
"eslint": "4.10.0",
"express": "^4.16.2",
"express-bunyan-logger": "^1.3.3",
"express-prom-bundle": "^3.3.0",
"form-data": "^2.3.2",
"form-serialize": "0.7.2",
"geo-viewport": "0.2.1",
"geoip-lite": "1.2.1",
"geojson-bbox": "0.0.0",
"hammerjs": "^2.0.8",
"history": "4.7.2",
"ignore-styles": "^5.0.1",
"isbot": "^2.1.2",
"isomorphic-fetch": "2.2.1",
"jump.js": "^1.0.2",
"lodash": "^4.17.5",
"microdata-node": "^1.0.0",
"murmurhash": "^0.0.2",
"pluralize": "^7.0.0",
"postcss-modules-values": "1.3.0",
"prop-types": "^15.6.2",
"query-string": "5.1.1",
"react": "^16.5.2",
"react-addons-css-transition-group": "^15.6.2",
"react-cookie": "0.4.8",
"react-dfp": "^0.7.5",
"react-document-meta": "^2.1.2",
"react-dom": "16.5.2",
"react-input-mask": "^1.2.2",
"react-input-range": "^1.3.0",
"react-lazyload": "^2.3.0",
"react-motion": "^0.5.2",
"react-overlays": "^0.8.3",
"react-redux": "^5.0.7",
"react-swipeable": "^4.3.0",
"react-themed": "3.2.1",
"react-waypoint": "^8.0.3",
"redux": "^4.0.0",
"redux-batched-subscribe": "^0.1.6",
"redux-form": "^7.4.2",
"redux-thunk": "^2.3.0",
"regenerator-runtime": "^0.12.0",
"reselect": "3.0.1",
"serve-favicon": "^2.5.0",
"serve-static": "^1.13.2",
"spin.js": "2.3.2",
"svg-baker-runtime": "^1.3.5",
"svg-sprite-loader": "^3.8.0",
"swipe-js-iso": "^2.0.4",
"thread-loader": "^1.2.0",
"ts-node": "^7.0.0",
"typescript": "^3.0.1",
"url": "0.11.0",
"uuid4": "1.0.0",
"vcards-js": "2.8.0",
"webpack-stats-plugin": "^0.2.1",
"yamljs": "0.3.0",
"yargs": "11.1.0"
},
"devDependencies": {
"0x": "colinrymer/0x",
"@babel/core": "^7.0.0-beta.55",
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.55",
"@babel/plugin-proposal-decorators": "^7.0.0-beta.55",
"@babel/plugin-proposal-export-default-from": "^7.0.0-beta.55",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.55",
"@babel/plugin-syntax-dynamic-import": "^7.0.0-beta.55",
"@babel/plugin-syntax-typescript": "^7.0.0-beta.55",
"@babel/plugin-transform-async-to-generator": "^7.0.0-beta.55",
"@babel/plugin-transform-classes": "^7.0.0-beta.55",
"@babel/plugin-transform-react-constant-elements": "^7.0.0-beta.55",
"@babel/plugin-transform-react-inline-elements": "^7.0.0-beta.55",
"@babel/plugin-transform-react-jsx": "^7.0.0-beta.55",
"@babel/plugin-transform-runtime": "^7.0.0-beta.55",
"@babel/preset-env": "^7.0.0-beta.55",
"@babel/preset-es2015": "^7.0.0-beta.53",
"@babel/preset-react": "^7.0.0-beta.55",
"@babel/preset-typescript": "^7.0.0-beta.55",
"@rentpath/eslint-config-rentpath": "^3.0.1",
"@storybook/addon-a11y": "^3.4.10",
"@storybook/addon-actions": "^3.4.10",
"@storybook/addon-info": "^3.4.10",
"@storybook/addon-knobs": "^3.4.10",
"@storybook/addon-links": "^3.4.10",
"@storybook/addon-options": "^3.4.10",
"@storybook/addon-viewport": "^3.4.10",
"@storybook/addons": "^3.4.10",
"@storybook/react": "^3.4.10",
"@types/bunyan": "^1.8.4",
"@types/classnames": "^2.2.6",
"@types/express": "^4.16.0",
"@types/express-bunyan-logger": "^1.3.0",
"@types/http-proxy": "^1.16.2",
"@types/lodash": "^4.14.115",
"@types/murmurhash": "^0.0.0",
"@types/node": "^10.5.4",
"@types/react": "^16.4.8",
"@types/react-dom": "^16.0.7",
"@types/react-redux": "^6.0.6",
"@types/storybook__react": "^3.0.9",
"@types/webpack-env": "^1.13.6",
"@types/yamljs": "^0.2.30",
"amphtml-validator": "^1.0.23",
"autocannon": "^2.4.1",
"autoprefixer": "^9.0.2",
"babel-cli": "^6.26.0",
"babel-core": "^7.0.0-0",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.0-beta",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-transform-node-env-inline": "6.8.0",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-inline-elements": "^6.22.0",
"babel-plugin-transform-react-remove-statics": "0.0.5",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-remove-debugger": "^6.9.4",
"brfs": "^1.4.4",
"chai": "^4.1.0",
"chai-enzyme": "^1.0.0-beta.1",
"chalk": "^2.3.1",
"chokidar": "^2.0.4",
"chromedriver": "2.42.0",
"circular-dependency-plugin": "^5.0.2",
"clean-webpack-plugin": "^0.1.18",
"compression-webpack-plugin": "^1.1.7",
"concurrently": "^3.6.1",
"css-loader": "^1.0.0",
"css-modules-require-hook": "^4.2.3",
"cz-conventional-changelog": "^2.1.0",
"dirty-chai": "^2.0.1",
"enzyme": "^3.6.0",
"enzyme-to-json": "^3.3.4",
"eslint-loader": "^2.1.0",
"eslint-plugin-mocha": "^5.1.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-watch": "^4.0.2",
"esprint": "^0.4.0",
"fetch-mock": "^5.13.1",
"file-loader": "^1.1.9",
"guacamole": "https://github.com/TestArmada/magellan-saucelabs-plugin#7ae5c74086e18b53803d8d5d5348d136f559b24f",
"html-loader": "^0.5.5",
"http-proxy": "^1.17.0",
"isomorphic-style-loader": "^4.0.0",
"jest": "^23.6.0",
"jest-css-modules": "^1.1.0",
"jest-serializer-html": "^5.0.0",
"jsdom": "^11.11.0",
"json-loader": "^0.5.7",
"just-wait": "1.0.11",
"mini-css-extract-plugin": "^0.4.1",
"mocha": "^5.2.0",
"nightwatch": "0.9.21",
"nightwatch-html-reporter": "^2.0.5",
"node-pre-gyp": "^0.10.3",
"node-sass": "^4.9.2",
"npm-scripts-info": "^0.3.7",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"postcss": "^7.0.2",
"postcss-loader": "^2.1.6",
"postcss-modules-extract-imports": "^1.1.0",
"postcss-modules-local-by-default": "^1.2.0",
"postcss-modules-scope": "^1.1.0",
"pryjs": "1.0.3",
"psi": "^3.1.0",
"puppeteer": "^1.7.0",
"raw-loader": "0.5.1",
"react-addons-perf": "^15.4.2",
"react-storybook-addon-chapters": "^2.1.7",
"react-test-renderer": "^16.5.2",
"redbox-react": "^1.5.0",
"redux-logger": "3.0.6",
"redux-mock-store": "^1.5.3",
"sass-loader": "^7.1.0",
"saucelabs": "1.5.0",
"selenium-standalone": "6.15.3",
"sinon": "5.1.1",
"sinon-chai": "^3.2.0",
"strip-loader": "0.1.2",
"style-loader": "^0.21.0",
"supertest": "^3.1.0",
"svgo": "^1.0.4",
"svgo-loader": "^2.1.0",
"testarmada-magellan": "11.0.1",
"testarmada-magellan-local-executor": "2.0.0",
"testarmada-magellan-nightwatch-plugin": "8.0.1",
"testarmada-magellan-saucelabs-executor": "5.0.0",
"testarmada-nightwatch-extra": "5.1.1",
"to-string-loader": "^1.1.5",
"transform-loader": "0.2.4",
"tslint": "^5.11.0",
"tslint-lines-between-class-members": "^1.2.4",
"typed-css-modules": "^0.3.5",
"uglifyjs-webpack-plugin": "^1.2.7",
"url-loader": "^1.0.1",
"webpack": "^4.16.3",
"webpack-bundle-analyzer": "^2.12.0",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5",
"webpack-jarvis": "^0.3.2",
"webpack-manifest-plugin": "^2.0.2",
"webpack-merge": "^4.1.3",
"webpack-node-externals": "^1.6.0",
"webworkify-webpack": "^2.1.3",
"wtfnode": "^0.7.0"
},
"greenkeeper": {
"ignore": [
"react-cookie",
"react-dfp"
]
},
"engines": {
"node": ">=8.9.1",
"yarn": "1.7.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"scripts-info": {
"clean": "Removes all files in distribution folder",
"build": "Cleans project and builds client and server",
"dev": "Cleans project and starts watch script",
"info": "Displays information about the scripts.",
"lint": "Runs eslint on src, test and tests folders",
"start": "Kickstarts the application.",
"test": "Runs mocha tests",
"watch": "Compiles the scripts and watches for changes."
}
}
0

works fine for me using your configuration + package.json.

Do you have Details.. link in error notification? Like:

 

If yes, please click this link and provide the output.

Also, what Node.js version is chosen in Settings | Languages & Frameworks | TypeScript | TSLint? Please provide the screenshot of this page plus your idea.log

0

Sorry but I can't sent you my idea.log as it may contain sensitive data. Thanks for your help!

0

Node.js version you are using (0.12.0) is very old and doesn't support ES2015 syntax; as a result, TSLint initialization fails on loading chalk module, on line 2 of index.js:

'use strict';
const escapeStringRegexp = require('escape-string-regexp');

const escapeStringRegexp = require('escape-string-regexp');
^^^^^
Use of const in strict mode.

Running npm run tslint in terminal will fails as well:

Node version 0.12.0 is not supported, please use Node.js 4.0 or higher.

Your project requires Node.js 8 or higher:

"engines": {
"node": ">=8.9.1",
"yarn": "1.7.0"
}

Please make sure to choose appropriate Node.js version in TSLint settings

 

0

Thanks! I didn't notice the node version was incorrect!

Our project has a .node-version file so I thought perhaps WebStorm would be smart enough to use the version specified in it. Feature request? :-)

The error has stopped after correcting the node version.

0

Please sign in to leave a comment.