Git Product home page Git Product logo

parcel-antd's Introduction

Ant Design Demo For Parcel

Include

  • React
  • TypeScript
  • Antd
  • Parcel
  • Less

Start

npm install
npm run dev
npm run build

or

yarn
yarn dev
yarn build

Visit http://localhost:1234


parcel-antd's People

Contributors

afc163 avatar crazyair avatar linbudu599 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

parcel-antd's Issues

Customize theme

using .lessrc with parcel doesn't work

{
    "modifyVars": {
        "@primary-color": "#1DA57A"
    }
}

is there any other way to do it?

Project doesn't run

Tried to run the project with npm install and npm start and I get this error:

Server running at http://localhost:1234 
🚨  /Users/vsorokin/ws/stuff/parcel-antd/index.js: Conflicting babel versions found in .babelrc. Make sure all of your plugins and presets depend on the same major version of babel.

I tried to update all of the packages to the latest, even used

"@babel/preset-env": "7.5.5",
"@babel/preset-react": "7.0.0",
  • didn't help.
    Basically, I was searching for a working example of parcel with antd and babel-plugin-import and can't find it...

Error with antd 4.x & @ant-design/icons

  • dependencies
"@ant-design/icons": "^4.3.0",
"antd": "^4.9.4",
  • import @ant-design/icons in app.tsx
import { SettingOutlined } from '@ant-design/icons';

// ...

const App = () => {
  return (
    <SettingOutlined />
  )
}

The command npm run dev works.

After npm run build, then serve dist.

The page will go wrong.

  • error message: Uncaught TypeError: Cannot read property 'TinyColor' of undefined

image

error when i use Datepicker

import React from 'react';
import ReactDOM from 'react-dom';
import { Button ,DatePicker} from 'antd';
import moment from 'moment';

const { MonthPicker, RangePicker, WeekPicker } = DatePicker;


ReactDOM.render(
  <div>
<Button type="primary">Button</Button>
<DatePicker  defaultValue={moment('2015-01-01', 'YYYY-MM-DD')} />
  </div>
, document.getElementById('mountNode'));

console show that:
moment.isMoment is not a function

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

How to work with antdv4?

Antd upgrade to v4 and I get warning Inline JavaScript is not enabled. Is it set in your options?.
How to use parcel and antd?

Not working


> [email protected] start /home/xxx/xxx/xxx/parcel-antd
> parcel index.html --no-cache

Server running at http://localhost:1234 
⏳  Building _iter-step.js...
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of react@>=16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>=16.0.0 but none is installed. You must install peer dependencies yourself.

+ [email protected]
🚨  /home/xxx/xxx/xxx/parcel-antd/node_modules/antd/es/style/index.npm WARN [email protected] requires a peer of react@>=16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>=16.0.0 but none is installed. You must install peer dependencies yourself.

+ [email protected]
added 66 packages in 14.734s

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.