fex-team / fis

Front-end Integrated Solution - 前端集成解决方案, 最新版请进入 FIS3 https://github.com/fex-team/fis3
http://fis.baidu.com
MIT License
2.96k stars 654 forks source link

require 一个文件,fis挂掉了 #747

Closed 67775128 closed 7 years ago

67775128 commented 8 years ago
var IOSRouter = require('common:ios.router');
//'common:ios.router
var Backbone = require('backbone');
var cefAPI = require('common:libs/cefAPI');
var PageView = require('common:page.view');
var ViewportView = require('viewport:viewport.view');

var HomeView = require('home:home.view');
var WelcomeView = require('viewport:welcome.view');
var ApplicationView = require('application:application.view');
var TaskView = require('task:task.view');
var eventCenter = require('common:libs/eventCenter');
var i18n = require('common:libs/i18n');
// Resource
var $ = Backbone.$;
var SideBarView = require('viewport:sidebar.view');
var log = require('log');
var LoadingUI = require('ui:loading.ui');

我觉得好像是目录太复杂,require太多文件,不知道有没有办法解决

2betop commented 8 years ago

错误信息呢?

67775128 commented 8 years ago

maximum call stack size exceeded@2betop

2betop commented 8 years ago

哪个编译过程?--verbose 看看,贴出错误 stack, 否则没法定位。

67775128 commented 8 years ago

qq 20160407162256 @2betop 这里

67775128 commented 8 years ago
fis.match('::package', {
    spriter: fis.plugin('csssprites'),
    postpackager: fis.plugin('loader', {
        resourceType: 'amd',
        useInlineMap: true,
        include:[
                //'**.js'
            ]
    })
});

include注释掉就好了,可是注释掉就不会生产sourcemap了

2betop commented 8 years ago

你用下最新的 loader 试试,如果还是不行的话,需要你提供一个仓库来存储能复现的代码,只要能复现,我明天就能修复

67775128 commented 8 years ago

好的,我先换loader试试,多谢

67775128 commented 8 years ago

还是不行,我把代码提到这里了,你看下https://github.com/67775128/test,多谢 @2betop

2betop commented 8 years ago

额,没问题啊。

~ sanbox/  proxychains4 git clone https://github.com/67775128/test.git                                                                                                                                                                                               [16:12:28]
[proxychains] config file found: ~/.proxychains/proxychains.conf
[proxychains] preloading /usr/local/Cellar/proxychains-ng/4.7/lib/libproxychains4.dylib
Cloning into 'test'...
remote: Counting objects: 2787, done.
remote: Compressing objects: 100% (701/701), done.
remote: Total 2787 (delta 122), reused 0 (delta 0), pack-reused 2048
Receiving objects: 100% (2787/2787), 7.81 MiB | 31.00 KiB/s, done.
Resolving deltas: 100% (435/435), done.
Checking connectivity... done.
~ sanbox/  cd test/src                                                                                                                                                                                                                                               [16:17:02]
~ src/ (master ✔) subl .                                                                                                                                                                                                                                             [16:23:16]
~ src/ (master ✔) fis3 release -cd ./output                                                                                                                                                                                                                          [16:23:17]

 [INFO] Currently running fis3 (/usr/local/lib/node_modules/fis3/)

 δ 361ms

 Ω ...................................................................................................................................................................................................................................................................................................................... 3.65s
~ src/ (master ✗)
67775128 commented 8 years ago

额,我换台电脑试试,看看是不是硬件问题

67775128 commented 8 years ago

换了台也是报一样的错,都是win7的机子,不知道有没有关系 @2betop

2betop commented 8 years ago

我用 win7 跑下试试

67775128 commented 8 years ago

win7有没有问题 @2betop