我已经从官方网站下载了flat-ui。dist
然后我在应用程序的根目录中复制粘贴的文件夹。我已经创建了基本的流星应用程序,meteor create app_name
我正在尝试实现 flat-ui 演示页面上给出的登录表单。
http://designmodo.github.io/Flat-UI/
登录页面位于页面末尾。
据了解,meteor 可以遍历根目录中的所有文件夹并添加 css 文件。(如果我错了,请纠正我)。我也收到类似的错误
W20150210-01:58:23.516(5.5)? (STDERR)
W20150210-01:58:23.519(5.5)? (STDERR) /home/ajinkya/.meteor/packages/meteor-tool/.1.0.38.ieqxkv++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150210-01:58:23.519(5.5)? (STDERR) throw(ex);
W20150210-01:58:23.520(5.5)? (STDERR) ^
W20150210-01:58:23.520(5.5)? (STDERR) ReferenceError: document is not defined
W20150210-01:58:23.521(5.5)? (STDERR) at app/dist/js/vendor/html5shiv.js:322:9
W20150210-01:58:23.521(5.5)? (STDERR) at app/dist/js/vendor/html5shiv.js:324:3
W20150210-01:58:23.521(5.5)? (STDERR) at /home/ajinkya/projects/umang/.meteor/local/build/programs/server/boot.js:175:10
W20150210-01:58:23.522(5.5)? (STDERR) at Array.forEach (native)
W20150210-01:58:23.522(5.5)? (STDERR) at Function._.each._.forEach (/home/ajinkya/.meteor/packages/meteor-tool/.1.0.38.ieqxkv++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150210-01:58:23.522(5.5)? (STDERR) at /home/ajinkya/projects/umang/.meteor/local/build/programs/server/boot.js:86:5
=> Exited with code: 8
所以我尝试删除js
文件夹。在该错误发生之后,但是当我尝试该登录表单示例时,输入框中没有图标。
请帮我解决一下这个。我认为它可能是导致问题的文件夹结构。