使用webpack将create-react-app部署到heroku。装载程序出错

时间:2017-04-15 05:59:20

标签: node.js reactjs heroku webpack create-react-app

看起来应用程序已部署:

> Counting objects: 7, done. Delta compression using up to 8 threads.
> Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7),
> 630 bytes | 0 bytes/s, done. Total 7 (delta 5), reused 0 (delta 0)
> remote: Compressing source files... done. remote: Building source:
> remote:  remote: -----> Node.js app detected remote:  remote: ----->
> Creating runtime environment remote:         remote:       
> NPM_CONFIG_LOGLEVEL=error remote:        NPM_CONFIG_PRODUCTION=true
> remote:        NODE_VERBOSE=false remote:        NODE_ENV=production
> remote:        NODE_MODULES_CACHE=true remote:  remote: ----->
> Installing binaries remote:        engines.node (package.json): 
> unspecified remote:        engines.npm (package.json):   unspecified
> (use default) remote:         remote:        Resolving node version
> 6.x via semver.io... remote:        Downloading and installing node 6.10.2... remote:        Using default npm version: 3.10.10 remote:  remote: -----> Restoring cache remote:        Loading 2 from
> cacheDirectories (default): remote:        - node_modules remote:     
> - bower_components (not cached - skipping) remote:  remote: -----> Building dependencies remote:        Installing node modules
> (package.json) remote:  remote: -----> Caching build remote:       
> Clearing previous node cache remote:        Saving 2 cacheDirectories
> (default): remote:        - node_modules remote:        -
> bower_components (nothing to cache) remote:  remote: -----> Build
> succeeded! remote: -----> Discovering process types remote:       
> Procfile declares types     -> (none) remote:        Default types for
> buildpack -> web remote:  remote: -----> Compressing... remote:       
> Done: 47.8M remote: -----> Launching... remote:        Released v19
> remote:        https://dry-depths-33506.herokuapp.com/ deployed to
> Heroku remote:  remote: Verifying deploy... done. To
> https://git.heroku.com/dry-depths-33506.git    1f1dcd3..40032c0 
> master -> master

然后我收到了这个:

Loader中的错误/app/node_modules/eslint/lib/api.js没有返回功能      @ multi main

0 个答案:

没有答案