szzzzz / react-scripts-ts-antd Goto Github PK
View Code? Open in Web Editor NEWscripts for create-react-app base on react-scripts-ts
scripts for create-react-app base on react-scripts-ts
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"
},
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?
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.
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'.
start.js
only logs error message on fail.
The stack trace can be very helpful and should be logged as well.
Output filename is like main.a8961efa.js . Is there any method to disable this default behavior?
我的环境是:
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的样式没有加载成功.
求解
tsLoader.test only matches typescript files, but I think it would be best to match on /\.(tsx?|jsx?)$/
in case compilerOptions.allowJs
is set to true
in the tsconfig.json
.
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)
Some SCC features in .scss files are not working,
for example comments:
// ...
or extend:
%text {
line-height: 22px;
}
body {
@extend %text;
}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.