# The packages installed via pnpm cannot be imported as '@babylonjs/loaders/glTF/2.0'

**URL:** <https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315>\
**Category:** Questions\
**Tags:** gltffileloader\
**Created:** [February 3, 2026, 3:28am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315 "2026-02-03T03:28:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeiStrive](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leistrive/32/49802_2.png) [@LeiStrive](https://forum.babylonjs.com/u/LeiStrive)\
**Post date:** [February 3, 2026, 3:28am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/1 "2026-02-03T03:28:33Z")

</div>

Hello Babylon.js community,

I am encountering an issue while trying to load a GLB model within a Vue 3 component using `babylonjs-loaders`. The relevant file is located at:  
`src/views/HomeView/components/ModeList.vue`

I have created a minimal reproduction of the problem on StackBlitz for your convenience:  
**Live Example:** [https://stackblitz.com/edit/github-nnpsen3x?file=src%2Fviews%2FHomeView%2Fcomponents%2FModeList.vue](https://stackblitz.com/edit/github-nnpsen3x?file=src%252Fviews%252FHomeView%252Fcomponents%252FModeList.vue)

**The Goal:**  
I want the `loadGLB` method in that file to execute successfully and display the 3D model.

**The Problem:**  
The GLB model fails to load or display as expected. The specific symptoms are [_please briefly describe what happens instead: e.g., “the scene remains empty,” “a console error occurs,” “the model loads but is invisible,” etc._].

**What I’ve Tried/Checked:**

1. I have verified that the `@babylonjs/core` and `@babylonjs/loaders` packages are installed and imported correctly in the project.

2. The GLB file path/URL appears to be correct and accessible.

3. The basic Babylon.js engine and scene creation seems to work.

Thank you for your time and support!

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [February 3, 2026, 5:16am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/2 "2026-02-03T05:16:23Z")

</div>

I uncommented the line 14 in `ModeList.vue` component  
`// import '@babylonjs/loaders/glTF/2.0'`

So now `@babylonjs/loaders` package has the chance to work 🙂

I also changed your model to the Seagull, it is just bigger to see better.

The corrected version of your Stackblitz is here - [https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9](https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9)  
(also fixed a TypeScript error in the BabylonSphere component where the parent prop wasn’t being checked correctly).

---

<div class="post-metadata">

**Author:** ![LeiStrive](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leistrive/32/49802_2.png) [@LeiStrive](https://forum.babylonjs.com/u/LeiStrive)\
**Post date:** [February 3, 2026, 5:52am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/3 "2026-02-03T05:52:40Z")

</div>

> [@labris](#):
>
> [https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9](https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9)

Excuse me, could you please take a look at it for me?

This link is 404.  
[https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9](https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9)

I encountered this error in the local environment.

 ![CleanShot 2026-02-03 at 13.50.33](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/b/3bdf52003db65ee39b68e6df5c7f4f9776861665.jpeg)

The error message is as follows

```bash
/Users/dalei/.volta/bin/npm run dev
npm warn Unknown user config "home". This will stop working in the next major version of npm.

> code@0.0.0 dev
> vite

  VITE v7.3.1 ready in 414 ms

  ➜ Local: http://localhost:8981/
  ➜ Network: http://10.17.52.178:8981/
  ➜ Vue DevTools: Open http://localhost:8981/ __devtools__ / as a separate window
  ➜ Vue DevTools: Press Option(⌥)+Shift(⇧)+D in App to toggle the Vue DevTools
  ➜ press h + enter to show help
✘ [ERROR] No matching export in "node_modules/.pnpm/@babylonjs+core@8.48.0/node_modules/@babylonjs/core/Buffers/bufferUtils.js" for import "GetBlobBufferSource"

    node_modules/.pnpm/@babylonjs+loaders@8.49.6_@babylonjs+core@8.48.0_babylonjs-gltf2interface@8.49.6/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js:9:9:
      9 │ import { GetBlobBufferSource } from "@babylonjs/core/Buffers/bufferUtils.js";
        ╵ ~~~~~~~~~~~~~~~~~~~

1:55:12 PM [vite] (client) error while updating dependencies:
Error: Error during dependency optimization:

✘ [ERROR] No matching export in "node_modules/.pnpm/@babylonjs+core@8.48.0/node_modules/@babylonjs/core/Buffers/bufferUtils.js" for import "GetBlobBufferSource"

    node_modules/.pnpm/@babylonjs+loaders@8.49.6_@babylonjs+core@8.48.0_babylonjs-gltf2interface@8.49.6/node_modules/@babylonjs/loaders/glTF/2.0/Extensions/MSFT_audio_emitter.js:9:9:
      9 │ import { GetBlobBufferSource } from "@babylonjs/core/Buffers/buffer...
        ╵ ~~~~~~~~~~~~~~~~~~~

    at failureErrorWithLog (/Volumes/GM7-HD/data/work/babylon-vue3/node_modules/.pnpm/esbuild@0.27.2/node_modules/esbuild/lib/main.js:1467:15)
    at /Volumes/GM7-HD/data/work/babylon-vue3/node_modules/.pnpm/esbuild@0.27.2/node_modules/esbuild/lib/main.js:926:25
    at /Volumes/GM7-HD/data/work/babylon-vue3/node_modules/.pnpm/esbuild@0.27.2/node_modules/esbuild/lib/main.js:1345:9
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

```

---

<div class="post-metadata">

**Author:** ![LeiStrive](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leistrive/32/49802_2.png) [@LeiStrive](https://forum.babylonjs.com/u/LeiStrive)\
**Post date:** [February 3, 2026, 6:50am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/4 "2026-02-03T06:50:42Z")

</div>

I previously installed it using pnpm. When I tried to import ‘import  
“@babylonjs/loaders/glTF/2.0”’, it gave an error. However, using npm works fine.

**Thank you very much.**

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [February 3, 2026, 11:38am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/5 "2026-02-03T11:38:21Z")

</div>

> [@LeiStrive](#):
>
> This link is 404.

This should be correct - [Daleistrive - Babylon Vue3 (duplicated) - StackBlitz](https://stackblitz.com/edit/github-nnpsen3x-hbwz1qx9?file=README.md)

Also, there is no sense to import `"babylonjs-loaders"` (line 22 in your original package.json) when you already use `"@babylonjs/loaders"` and other packages with “@” at the beginning .

---

<div class="post-metadata">

**Author:** ![brightMoon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brightmoon/32/9959_2.png) [@brightMoon](https://forum.babylonjs.com/u/brightMoon)\
**Post date:** [February 3, 2026, 3:24pm UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/6 "2026-02-03T15:24:33Z")

</div>

You should delete package-lock.json and node\_modules, then try reinstalling using pnpm.

---

<div class="post-metadata">

**Author:** ![LeiStrive](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leistrive/32/49802_2.png) [@LeiStrive](https://forum.babylonjs.com/u/LeiStrive)\
**Post date:** [February 4, 2026, 6:37am UTC](https://forum.babylonjs.com/t/the-packages-installed-via-pnpm-cannot-be-imported-as-babylonjs-loaders-gltf-2-0/62315/7 "2026-02-04T06:37:09Z")

</div>

You’re right. After re-installing using pnpm, it works fine now.  
Thank you.
