Open techdeus opened 7 months ago
My typescript config!
`{
"compilerOptions": {
"target": "ESNext",
"skipLibCheck": true,
"lib": [
"DOM",
"es2023",
"ESNext",
"WebWorker",
],
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"strictPropertyInitialization": false,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"jsxImportSource": "solid-js",
"baseUrl": ".",
"paths": {
"~assets/*": [
"./src/assets/*"
],
"~modules/*": [
"./src/modules/*"
],
"~containers/*": [
"src/styles/containers/*"
],
"~layouts/*": [
"src/styles/layouts/*"
],
"~stores/*": [
"./src/stores/*"
],
"~components/*": [
"./src/components/*"
],
"~utilities/*": [
"./src/utilities/*"
],
},
"types": ["vite/client", "vitest/globals"],
},
"include": ["src"],
"exclude": ["node_modules", "**/*.test.ts", "**/.test.tsx", "eyes/dist/experimental/**/*"]
}`
Describe the bug
Hi I am working on a project with the techstack SolidJS with Vite for the dev and prod servers FE. THe @pdfme/ui package is throwing the following error: "Return outside of function!" I attempted to fix by modifying the babel parser with the vite-babel-plugin.
https://www.npmjs.com/package/vite-plugin-babel https://babeljs.io/docs/babel-parser#options
To Reproduce
Typescript tailwindcss template + basic file base routing
$ npx degit solidjs/templates/ts-router my-solid-project $ cd my-solid-project $ npm install # or pnpm install or yarn install
Expected behavior
I am expected to use the library which will allow users to run their editor and create templates for PDFs. The Common and and Generator libraries work like a charm!
Your Environment
Your Error Log
Additional context
No response