Meteor 1.6 Coffeescript: зарезервированное слово «импорт» - PullRequest
0 голосов
/ 08 июня 2018

Я использую Метеор 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

1 Ответ

0 голосов
/ 09 июня 2018

Вам также понадобится пакет modules.

meteor add modules
...