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

Unexpected token: name (isLastCharLower) [./~/camelcase/index.js:4,0] #25

Closed
mozillo opened this issue Jul 14, 2017 · 1 comment
Closed

Comments

@mozillo
Copy link

mozillo commented Jul 14, 2017

My dependencies

  "dependencies": {
    "antd": "^2.11.0",
    "antd-mobile": "^1.3.0",
    "babel-plugin-syntax-decorators": "^6.13.0",
    "babel-plugin-transform-class-properties": "^6.24.1",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "babel-preset-stage-1": "^6.24.1",
    "bowser": "^1.7.0",
    "camelcase": "^4.1.0",
    "express": "^4.15.3",
    "fastclick": "^1.0.6",
    "mobx": "^3.1.15",
    "mobx-form-label": "^1.0.8",
    "mobx-form-validate": "^1.0.2",
    "mobx-react": "^4.2.1",
    "moment": "^2.18.1",
    "morgan": "^1.8.2",
    "react": "^15.6.1",
    "react-dom": "^15.6.1",
    "react-router": "3.0.2",
    "urijs": "^1.18.10",
    "uuid": "^3.1.0"
  },

My webpack.config.js

        test: /\.(js|jsx)$/,
        include: paths.appSrc,
        loader: require.resolve('babel-loader'),
        options: {
          plugins: [
            ['import', { libraryName: 'antd-mobile', style: true }],
            ['transform-decorators-legacy']
          ],
          presets: ['react', 'es2015', 'stage-0' ],
          cacheDirectory: true,
        }

When I build production code, I got this failed message.

@sindresorhus
Copy link
Owner

Use the webpack support channels for webpack support needs: https://github.com/webpack/webpack#support

Repository owner deleted a comment from erossignon Oct 26, 2017
Repository owner deleted a comment from ihorkatkov Oct 26, 2017
Repository owner locked and limited conversation to collaborators Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants