我使用的是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)已解决:这是由于包tap:i18n它在依赖项中是这样的coffeescript版本
发布于 2018-06-09 17:30:19
您还需要modules包。
meteor add moduleshttps://stackoverflow.com/questions/50757646
复制相似问题