Coder Social home page Coder Social logo

react-scripts-ts-antd's People

Contributors

engsshi avatar szzzzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-scripts-ts-antd's Issues

Issues deploying to Netlify

Building locally works fine. When pushing to Netlify we get this issue however:

6:02:34 PM: yarn run v1.3.2
6:02:34 PM: $ react-scripts-ts-antd build
6:02:34 PM: /bin/sh: 1: react-scripts-ts-antd: not found

Any idea why?

Our package.json file looks something like this:

  "dependencies": {
	...
    "react-scripts-ts-antd": "2.15.1",
	...
  },
  "scripts": {
    "start": "react-scripts-ts-antd start",
    "build": "react-scripts-ts-antd build",
    "test": "react-scripts-ts-antd test --env=jsdom",
    "eject": "react-scripts-ts-antd eject"
  },

antd按需引入未成功

我的环境是:
windows10
node: v0.8.6

执行create-react-app myapp --scripts-version=react-scripts-ts-antd之后,packages.json为:

{
  "name": "myapp",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "antd": "^2.13.10",
    "react": "^16.1.1",
    "react-dom": "^16.1.1",
    "react-scripts-ts-antd": "0.4.8"
  },
  "scripts": {
    "start": "react-scripts-ts-antd start",
    "build": "react-scripts-ts-antd build",
    "test": "react-scripts-ts-antd test --env=jsdom",
    "eject": "react-scripts-ts-antd eject"
  },
  "devDependencies": {
    "@types/jest": "^21.1.8",
    "@types/node": "^8.0.53",
    "@types/react": "^16.0.25",
    "@types/react-dom": "^16.0.3"
  }
}

其他未作改变,但是antd的样式没有加载成功.
求解

Some SCSS features are not working

Some SCC features in .scss files are not working,

for example comments:

// ...

or extend:

%text {
    line-height: 22px;
}
body {
    @extend %text;
}

Log stack trace on fail

start.js only logs error message on fail.
The stack trace can be very helpful and should be logged as well.

How to modify WatchOptions?

The scripts are consuming High CPU when doing nothing (only watching files with pooling I presume).
I would be very useful to use (usePolling: false) on systems that support it!
(Summer is Hot)

CI argument does not work

The code only checks for the env variable, not for the command line argument.

I have a fix ready. Would you accept it? Tried pushing already but not perms.

Up to date? This package has vulnerable dependencies

Hi,

From running npm audit on a project I'm using with this package there are a numerous vulnerable dependencies including:

webpack-dev-server
hoek
braces
js-yaml

Please could you update this package to use the secure versions of each of these dependencies?

App does not compile when using an index.less file and config-overrides.js example

Hi,

As above, when overriding antd theme using an index.less file in conjunction with the config-overrides.js example to avoid importing styles twice as stated in the README, the app wont start. I get the following output:

> [email protected] start /home/will/Documents/ampr/ampr-app/ampr-client
> react-scripts-ts-antd start

options/query provided without loader (use loader + options) in {
  "test": {},
  "include": "/home/will/Documents/ampr/ampr-app/ampr-client/src",
  "use": [
    {
      "loader": "/home/will/Documents/ampr/ampr-app/ampr-client/node_modules/ts-loader/index.js",
      "options": {
        "transpileOnly": true
      }
    }
  ],
  "options": {
    "transpileOnly": true
  }
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts-ts-antd start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/will/.npm/_logs/2018-10-05T15_18_05_943Z-debug.log

Any help would be greatly appreciated.

Incorrect types

I've been trying to get an app working with create-react-app, react-app-rewired, typescript, and antd, but was running into some compiling issues with incorrect types.

I found this package and started a new project with it and getting the same errors:

(28,81): Type '{ className: string; style: { transition: string | boolean; msTransform: string; WebkitTransform:...' does not satisfy the constraint 'HTMLAttributes<HTMLElement>'.
  Types of property 'style' are incompatible.
    Type '{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }' is not assignable to type 'CSSProperties | undefined'.
      Type '{ transition: string | boolean; msTransform: string; WebkitTransform: string; transform: string; }' is not assignable to type 'CSSProperties'.
        Types of property 'transition' are incompatible.
          Type 'string | boolean' is not assignable to type 'string | undefined'.
            Type 'true' is not assignable to type 'string | undefined'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.