我正在使用Meteor 1.6。使用coffeescript包,当我使用'import'导入npm包时,我有这个错误。
Errors prevented startup:
While processing files with coffeescript (for target web.browser):
client/pages/list/itemsList.coffee:1:1: reserved word 'import'
这是我的包文件:
meteor-base@1.3.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
mongo@1.4.2 # The database Meteor supports right now
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.1.3 # Meteor's client-side reactive programming library
coffeescript
dynamic-import
standard-minifier-css@1.4.0 # CSS minifier run for production mode
standard-minifier-js@2.3.1 # JS minifier run for production mode
es5-shim@4.7.0 # ECMAScript 5 compatibility for older browsers
shell-server@0.3.1 # Server-side component of the `meteor shell` command
ecmascript
check
ejson
jquery
less
random
rate-limit
yasaricli:slugify
kadira:flow-router
kadira:blaze-layout
momentjs:moment
accounts-base
accounts-ui
accounts-password
service-configuration
accounts-facebook
session
http
email
patrickml:swal
raix:handlebar-helpers
ostrio:files
ethereum:web3
tap:i18n
meteorhacks:ssr
请帮忙。我不知道该怎么做..我有最新的coffeescript和ecmascript包。
更新:
在meteor update
后我得到了这个结果
The following top-level dependencies were not updated to the very latest
version available:
* coffeescript 1.0.17 (2.2.1_1 is available)
解决: 这是由于包点击:i18n它在依赖中有这样一个版本的coffeescript
答案 0 :(得分:0)
您还需要modules
包。
meteor add modules