Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to minify the code #91

Open
michaelsync opened this issue Dec 3, 2017 · 1 comment
Open

Failed to minify the code #91

michaelsync opened this issue Dec 3, 2017 · 1 comment

Comments

@michaelsync
Copy link

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?

@michaelsync michaelsync changed the title https://github.com/wbuchwalter/tslint-loader/issues Failed to minify the code Dec 4, 2017
@OzairP
Copy link

OzairP commented Sep 7, 2018

Is there a solution to this or documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants