Nuxt 样条加载器

问题描述 投票:0回答:0

我正在尝试在我的 Nuxt (v2) 项目中添加一些来自 Spline 的动画。 在 Spline 上,我将动画导出到 three.js 文件。

在我的 nuxt 项目中,我安装了三个和 Splinetool/loader:

"dependencies": {
    "nuxt": "^2.15.8",
    "@splinetool/loader": "^0.9.252",
    "three": "^0.150.1",

但是当我尝试导入 Spline Loader 时:

import SplineLoader from '@splinetool/loader';

我有这个消息:

ERROR in ./node_modules/@splinetool/loader/build/SplineLoader.js 1:41167
Module parse failed: Unexpected token (1:41167)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

我需要一个装载机来装载一个装载机……?? 多谢 ;) 文森特

three.js nuxt.js spline
© www.soinside.com 2019 - 2024. All rights reserved.