をowl.Carouselインポートすることはできません。流星NPM - 私は、このコマンドで<a href="https://www.npmjs.com/package/owl.carousel" rel="nofollow">Owl.Carousel</a>をインストールした流星のドキュメントに続き
meteor npm install --save owl.carousel
今、私はnode_modules/owl.carousel
でそれを持って、私はまったく同じImport
にそれをしようとしていますここに述べた - Using NPM packages:
import owl.Carousel from 'owl.carousel';
が、ビルド時に、私はこのエラーを取得:
While building for web.browser: imports/startup/client/index.js:5:10: Unexpected token (5:10).
5:10 import文のポイントです:import owl
このポイント - >.Carousel from 'owl.carousel';
私のミスですか? Owl.Carouselをどうやってインポートするのですか?
これまでに解決策をお探しですか? –
はい。 'owl.carousel 'からのimport owlCarousel; - は動作します。 – Edgar