Closed Hextar closed 1 year ago
It looks like Vite did not support Rollup's this.load
until just a few weeks ago: https://github.com/vitejs/vite/issues/6810 / https://github.com/vitejs/vite/pull/11469 . It seems to have only been released in the 4.2.x betas as of right now.
So this is an upstream Vite issue, not a bug with rpt2
What happens and why it is incorrect
Running
vitest
shows athis.load is not a function
error on the terminal, using:Environment
#### tsconfig.json ```json5 { "extends": "@vue/tsconfig/tsconfig.web.json", "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], "compilerOptions": { "lib": ["esnext", "dom", "dom.iterable", "scripthost"], "allowJs": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "strictNullChecks": false, "skipLibCheck": true, "esModuleInterop": true, "declaration": true, "outDir": "dist", "declarationDir": "dist", "baseUrl": ".", "paths": { "@/*": ["./src/*"] } }, "references": [ { "path": "./tsconfig.vite-config.json" } ] } ``` #### tsconfig.vite-config.json ``` { "extends": "@vue/tsconfig/tsconfig.node.json", "include": ["vite.config.*"], "compilerOptions": { "composite": true, "types": ["vite/client", "node", "vitest"] } } ```
:tsconfig.json
```json { "name": "darwin-uikit", "version": "0.0.6", "private": true, "description": "UI kit library for the Darwin platform", "author": "Stefano Salidu
:package.json