# DeveloperError: Width must be less than or equal to the maximum texture size (0). Check maximumTextureSize

**URL:** <https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006>\
**Category:** CesiumJS\
**Created:** [April 27, 2026, 8:23am UTC](https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006 "2026-04-27T08:23:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xulayen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/xulayen/32/30777_2.png) [@xulayen](https://community.cesium.com/u/xulayen)\
**Post date:** [April 27, 2026, 8:23am UTC](https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006/1 "2026-04-27T08:23:21Z")

</div>

Hello your guys,

This is demo in the [sandcastle](https://sandcastle.cesium.com/index.html#c=fVZLbyNFEP4rLSvIYxh6nDiOE28SAUFigxLtajcih/VK6cxUPC16uk13jzPeyBcuCK5ckODAAbhwYRFSDmj335hd/gXV87DHj8WSLU/VV9VVXz2meTJS2pL3CTPkBAxPE3KjVUIGjTB/GjQeDPRA1r+hksaSIVMRnLEJ6BMlb/iQHJE7pyWER32y3fOLB8kS6JPmv7//MHt9P/vpj9mPr5ulKtXCoCq2dmT6QRBGkmZZRkOVBNvd3Z1et9fd7QV3L6bBXYbfydTfBN3f6x209zvt3TqyOiJhGcayXz1x2Sed8iFUSkdcMgsXk5EL8bOTz9s7heF0NWWEC2aQodRYlVxwAY+1GvMIdJW0c4i06DS0SnsuNd+ddwZjEL6LI//XWsAJsTE3FJEXkIwExmGQQmdIzUhw6zX9ZmsFjA55kia5KwRX/ldRLFtClWevoCwmcckjGyNkp7u3QfsQ+DC271JzOXwaxpAAAiTcls1DL+H6HHTIkIWLGshbTUVDaJkcCme+5nKhXbNi0cRZ6HSjCquScON8lv9QbJQYg+csVmMINUTcLsd/ksu85YadG04XDUGIhq9SMPY0YUPwMp9MfCLWilwMiy1LfCojyPBALyMfkAl+S4P31puBCpBDGy88CbCuPSq+6thnS/6fU6t5Ume8MMNfpANxIXhNHJZmFW9NmjlpVpe4YSKTVj1xl7pNtaw4e4IcpzoEegM2jAs+ahTk5/fdj18XhloZ80jzoZvK5sdSyUmiUtOsgaYtip0Uxp4HWivdIkfHZMmxY1cJoLnau5p99/PbV6/efP/bm2+/mf3y8u1fv5JnW3d5ktNgy+2GLczn+ZVPCn91V2VKMhWiHsBS5WsNUC0RV90w3wrzjVD209qq8Cpfq6uT5uvinVoc8/9RsqxUtjaFNuZwuwipKNcXucxrFgse/VjGJWgs85zba2aKUx7z8EvQfXLDhIF5FNyVWE+qxCo1qfRBgB2vNbpdQMrDceawTy+VFtFFAfFac78M1xuzXGFDuHmdyy1PALcDrIhvsFYGHYL8JLV2zSpWCWxUmBAknCORVXZLWsnGfJhH8RDEaIOD6UamS05y1pb5Pq1pvOVeqVFuYnW7EgkTo5jh+4u2104mZWVp/VhDWRR5dclKpKVNiO9kzagB61phMaoRbjP3RswLUO1DpnHBcCY71N0LPoUh8m287e092jno7e7s+6RzQA/aBzsdn3Tb+FmUU2kO2FyFv9rcxriqcdfPzzhnNqZWPUEpk8areSBkxHH+34X8cLdbx2olcM+055LpBtqqjSHUEPfF/Z//3P+NWwOX/Ozl132ydbc2YO4CM71aIrLhNw6NnQg4dh4/4sUVCofYozSoVrEJrlPsLktDY1oPBvIwqEwOIz7GS9JRdcWaT+CgUVwzUONa+yl/AYPG8WGA+CUzoXL+Ho1BCzZxkHj7+KwQUkoPA3xct7JKiWumax7/Aw).

I using cesium@1.1.136 in my project, that is runing ok ,until I delete `node_modules folder and execute ``pnpm i``, the cesium was borken , when rending some icons on the map , it show``DeveloperError: Width must be less than or equal to the maximum texture size (0). Check maximumTextureSize.` .

I watch the version in the Cesium object , it show 1.1.136 ,but , it show 1.1.140 in the window.CESIUM\_VERSION, I don’t know why.

 ![image](https://global.discourse-cdn.com/cesium/original/3X/f/a/fadd43f22a73f171c2429e9f5f4c4b690b07f6bf.jpeg)

---

<div class="post-metadata">

**Author:** ![Travis.Crowell](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/travis.crowell/32/33428_2.png) [@Travis.Crowell](https://community.cesium.com/u/Travis.Crowell)\
**Post date:** [April 28, 2026, 12:24am UTC](https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006/2 "2026-04-28T00:24:50Z")

</div>

Hi xulayen,

Thank you for using the Cesium forum and posting your sandcastle example and a screenshot of your issue.

Can you please try the following?

1. **Check that only one Cesium version is used**

2. **Make sure Cesium assets are copied correctly**

3. **Do not mix import methods**

This error is **not related to icon size**.  
It usually means **Cesium or WebGL did not initialize correctly** , often due to asset loading or version mismatch.

Hope this helps — let us know what you find!

---

<div class="post-metadata">

**Author:** ![xulayen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/xulayen/32/30777_2.png) [@xulayen](https://community.cesium.com/u/xulayen)\
**Post date:** [April 28, 2026, 2:25am UTC](https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006/3 "2026-04-28T02:25:44Z")

</div>

First and formost , Thanks for you answer me detailly. But sadly, It is shows only one version that I use.

Secondly, I use the way No. 1 that you mentioned , I check the version use the `pnpm list cesium --depth=10` what it shows like this — Only one version of Cesium in my project.

```auto
terjin/components link:packages/components
├─┬ @cesium-extends/measure 1.1.4
│ ├─┬ @cesium-extends/drawer 1.3.8
│ │ ├─┬ @cesium-extends/common 1.0.2
│ │ │ └── cesium 1.136.0 peer
│ │ ├─┬ @cesium-extends/subscriber 1.1.1
│ │ │ └── cesium 1.136.0 peer
│ │ ├─┬ @cesium-extends/tooltip 1.2.3
│ │ │ ├─┬ @cesium-extends/common 1.0.2
│ │ │ │ └── cesium 1.136.0 peer
│ │ │ └── cesium 1.136.0 peer
│ │ └── cesium 1.136.0 peer
│ ├─┬ @cesium-extends/subscriber 1.1.1
│ │ └── cesium 1.136.0 peer
│ ├─┬ @cesium-extends/tooltip 1.2.3
│ │ ├─┬ @cesium-extends/common 1.0.2
│ │ │ └── cesium 1.136.0 peer
│ │ └── cesium 1.136.0 peer
│ └── cesium 1.136.0 peer
└─┬ @cesium-extends/subscriber 1.1.1
└── cesium 1.136.0 peer

devDependencies:
@cesium-extends/measure 1.1.4
├─┬ @cesium-extends/drawer 1.3.8
│ ├─┬ @cesium-extends/common 1.0.2
│ │ └── cesium 1.136.0 peer
│ ├─┬ @cesium-extends/subscriber 1.1.1
│ │ └── cesium 1.136.0 peer
│ ├─┬ @cesium-extends/tooltip 1.2.3
│ │ ├─┬ @cesium-extends/common 1.0.2
│ │ │ └── cesium 1.136.0 peer
│ │ └── cesium 1.136.0 peer
│ └── cesium 1.136.0 peer
├─┬ @cesium-extends/subscriber 1.1.1
│ └── cesium 1.136.0 peer
├─┬ @cesium-extends/tooltip 1.2.3
│ ├─┬ @cesium-extends/common 1.0.2
│ │ └── cesium 1.136.0 peer
│ └── cesium 1.136.0 peer
└── cesium 1.136.0 peer
@cesium-extends/subscriber 1.1.1
└── cesium 1.136.0 peer
@cesium-extends/tooltip 1.2.3
├─┬ @cesium-extends/common 1.0.2
│ └── cesium 1.136.0 peer
└── cesium 1.136.0 peer
cesium 1.136.0

```

This is my way to use the cesium assets in the `vite.config.ts `（ a Vue3 config file like some config file in React project）file. It has same effect when I use `window.CESIUM_BASE_URL = 'libs/Cesium/'` instead of coping to the libs folder in `vite.config.ts` config file .

```javascript

const cesiumSource = '../node_modules/cesium/Build/Cesium'
// This is the base url for static files that CesiumJS needs to load.
// Set to an empty string to place the files at the site's root path
const cesiumBaseUrl = 'cesiumStatic'

// https://vite.dev/config/
export default defineConfig({
  define: {
    // Define relative base path in cesium for loading assets
    // https://vitejs.dev/config/shared-options.html#define
    CESIUM_BASE_URL: JSON.stringify(`/${cesiumBaseUrl}`),
  },
  plugins: [
    tailwindcss(),
    vue(),
    vueJsx(),
    // vueDevTools(),
    // Copy Cesium Assets, Widgets, and Workers to a static directory.
    // If you need to add your own static files to your project, use the `public` directory
    // and other options listed here: https://vitejs.dev/guide/assets.html#the-public-directory
    viteStaticCopy({
      targets: [
        { src: `${cesiumSource}/ThirdParty`, dest: cesiumBaseUrl },
        { src: `${cesiumSource}/Workers`, dest: cesiumBaseUrl },
        { src: `${cesiumSource}/Assets`, dest: cesiumBaseUrl },
        { src: `${cesiumSource}/Widgets`, dest: cesiumBaseUrl },
      ],
    }),
  ],
  assetsInclude: [' **/*.gltf', '** /*.glb'],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url)),
    },
  },

  server: {
    host: true,
    allowedHosts: ['pc-local.xxx.com'],
    hmr: {
      overlay: true,
      clientPort: 5173,
    },
  },
})

```

I check my project that only use `import` method ,I don’t use `<script>` tag in the `index.html.`

---

<div class="post-metadata">

**Author:** ![xulayen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/xulayen/32/30777_2.png) [@xulayen](https://community.cesium.com/u/xulayen)\
**Post date:** [April 28, 2026, 8:01am UTC](https://community.cesium.com/t/developererror-width-must-be-less-than-or-equal-to-the-maximum-texture-size-0-check-maximumtexturesize/46006/4 "2026-04-28T08:01:07Z")

</div>

Hello again, Travis.Crowell:

I tried to upgrading my version continuously.My project was successful when I upgraded my version to `1.140` directly.Anyway, I success although I don’t know why too.

Thank you very much!

 ![image](https://global.discourse-cdn.com/cesium/original/3X/8/4/8421a979a7a3ca09a6ddcf1ca28bc03ac28be182.jpeg)
