使用uuid報錯:Deep requiring like `const uuidv1 = require('uuid/v1');` is deprecated as of [email protected]. Please require the top-level module when using the Node.js CommonJS module or use ECMAScript Modules when bundling for the browser.
將import uuidv1 from 'uuid/v1'改爲import { v1 as uuidv1 } from 'uuid'即可