wbuchwalter / tslint-loader

tslint loader for webpack
192 stars 65 forks source link

Failed to minify the code #91

Open michaelsync opened 6 years ago

michaelsync commented 6 years ago

Hi,

I am getting this error below when I do 'yarn build'

yarn run v1.3.2                                                                        
$ react-scripts-ts build                                                               
Creating an optimized production build...                                              
Warning: The 'no-use-before-declare' rule requires type information.                   
ts-loader: Using typescript@2.5.3 and ...\tsconfig.json 
Failed to compile.                                                                     

Failed to minify the code from this file:                                              

        ./node_modules/tslint-loader!./src/App.tsx:7                                   

Read more here: http://bit.ly/2tRViJ9                                                  

error Command failed with exit code 1.                                                 
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.   

As suggested on this link http://bit.ly/2tRViJ9 , I am opening up an issue here.

I have NoteJS v8.9.1 installed.

Here is the list of node modules that I have.

{
  "name": "xxx",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "bootstrap": "^3.3.7",
    "mobx": "^3.3.1",
    "mobx-react": "^4.3.4",
    "react": "^16.1.1",
    "react-bootstrap": "^0.31.5",
    "react-dom": "^16.1.1",
    "react-dropzone": "4.1.3",
    "react-router-dom": "^4.2.2",
    "react-scripts-ts": "2.8.0",
    "whatwg-fetch": "^2.0.3"
  },
  "scripts": {
    "start": "react-scripts-ts start",
    "build": "react-scripts-ts build",
    "test": "react-scripts-ts test --env=jsdom",
    "apimocker": "apimocker -c src/mock-data/config.json",
    "eject": "react-scripts-ts eject"
  },
  "devDependencies": {
    "@types/jest": "^21.1.7",
    "@types/node": "^8.0.53",
    "@types/react": "^16.0.25",
    "@types/react-bootstrap": "^0.31.8",
    "@types/react-dom": "^16.0.3",
    "@types/react-dropzone": "^4.1.0",
    "@types/react-router-dom": "^4.2.2",
    "apimocker": "^0.5.1"
  }
}

Could you please publish the package pre-compiled?

OzairP commented 6 years ago

Is there a solution to this or documentation?