champierre / tm2scratch

Connect Google Teachable Machine with Scratch
https://champierre.github.io/tm2scratch/
BSD 3-Clause "New" or "Revised" License
25 stars 28 forks source link

ml5.js の読み込み元を変更する #2

Closed champierre closed 4 years ago

champierre commented 4 years ago
const ml5 = require('../ml5.min.js');

->

const ml5 = require('ml5.min.js');
yokobond commented 4 years ago

const ml5 = require('./ml5.min.js'); とすると読めました。 2e66b189219693b3de75a27b9eea7ba872b72353

champierre commented 4 years ago

ml5.min.js を ml5_.min.js のように名前を変えれば回避できるかもしれない。

champierre commented 4 years ago

回避できませんでした。

2つ目の拡張機能を追加しようとすると、

only one instance of babel-polyfill is allowed

と出て怒られます。

スクリーンショット 2020-01-29 18 24 48
yokobond commented 4 years ago

とりあえず、ml5.min.js を extensions ディレクトリに置いて共有できるようにしておきました。 84fbf4ff3487825439df40b623c58e9a15db9918

champierre commented 4 years ago

クローズします。