Wazbat
Wazbat
Explore posts from servers
DDeno
Created by Wazbat on 10/27/2024 in #help
permission denied error when running deno install inside dockerfile
I thought the error was caused by the ENV DENO_DIR=./.deno_cache that I added due to the following: https://github.com/denoland/deno_docker/blob/main/README.md#running-on-google-cloud-rungcr However even after removing it I still get that same os error, now due to failing to write the lockfile:
0.910 Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
0.910 ┠─ npm:[email protected]
0.910 ┃
0.910 ┠─ This may cause the packages to not work correctly.
0.910 ┠─ Lifecycle scripts are only supported when using a `node_modules` directory.
0.910 ┠─ Enable it in your deno config file:
0.910 ┖─ "nodeModulesDir": "auto"
1.065 error: Failed writing lockfile.
1.065
1.065 Caused by:
1.065 Permission denied (os error 13) (for '/app/deno.lock')
0.910 Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
0.910 ┠─ npm:[email protected]
0.910 ┃
0.910 ┠─ This may cause the packages to not work correctly.
0.910 ┠─ Lifecycle scripts are only supported when using a `node_modules` directory.
0.910 ┠─ Enable it in your deno config file:
0.910 ┖─ "nodeModulesDir": "auto"
1.065 error: Failed writing lockfile.
1.065
1.065 Caused by:
1.065 Permission denied (os error 13) (for '/app/deno.lock')
I'm at a loss
3 replies
NNuxt
Created by Thr0nSK on 8/6/2024 in #❓・help
Auto imported functions show type error in <template>
Looks like there's a couple of similar issues being opened https://github.com/nuxt/nuxt/issues/28440
36 replies
NNuxt
Created by Wazbat on 8/6/2024 in #❓・help
Unable to use auto imported functions inside vue html
6 replies
NNuxt
Created by Thr0nSK on 8/6/2024 in #❓・help
Auto imported functions show type error in <template>
No description
36 replies
NNuxt
Created by Wazbat on 8/6/2024 in #❓・help
Unable to use auto imported functions inside vue html
Ahh bugger...
6 replies
NNuxt
Created by Wazbat on 8/6/2024 in #❓・help
Unable to use auto imported functions inside vue html
No description
6 replies
NNuxt
Created by Wazbat on 8/6/2024 in #❓・help
Unable to use auto imported functions inside vue html
Same with with other utilities like isEmpty
6 replies
NNuxt
Created by Wazbat on 5/2/2024 in #❓・help
Nuxt not detecting patch route
Yeah, seems like compiling my app fixed it?
3 replies
NNuxt
Created by Wazbat on 4/28/2024 in #❓・help
Post request to page path
Ahhh gotcha! Perfect thanks!
8 replies
NNuxt
Created by Wazbat on 4/28/2024 in #❓・help
Post request to page path
However I don't have an index.ts pages/auth/signin.vue is a nuxt page server/routes/auth/signin/index.post.ts is a server handler Is this ok and possible?
8 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
I've opened a github issue for this https://github.com/nuxt/ui/issues/1710
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
Ohh even with that I still get the same error with your code
C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called> pnpm add -D vue-tsc@^1 typescript
Packages: +9 -9
+++++++++---------
Progress: resolved 1327, reused 1238, downloaded 0, added 9, done

devDependencies:
- vue-tsc 2.0.14
+ vue-tsc 1.8.27 (2.0.14 is available)

Done in 9s
PS C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called> pnpm run validate:typescript

> [email protected] validate:typescript C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called
> nuxi typecheck

ℹ Using default Tailwind CSS file nuxt:tailwindcss 21:43:44
Untitled-1.vue:30:5 - error TS2322: Type 'boolean | undefined' is not assignable to type 'string | number | Record<string, any> | unknown[] | undefined'.

30 v-model="value"
~~~~~~~

node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue.d.ts:354:5
354 modelValue: string | number | unknown[] | Record<string, any>;
~~~~~~~~~~
The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ size: SelectSize; ui: any; id: string; icon: string; color: any; class: any; options: string[] | { [key: string]: any; disabled?: boolean | undefined; }[]; popper: PopperOptions; ... 27 more ...; showCreateOptionWhen: "empty" | "always"; }> & Omit<...> & Record<...>'


Found 1 error in Untitled-1.vue:30


ERROR Command failed with exit code 2: vue-tsc --noEmit 21:44:01
C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called> pnpm add -D vue-tsc@^1 typescript
Packages: +9 -9
+++++++++---------
Progress: resolved 1327, reused 1238, downloaded 0, added 9, done

devDependencies:
- vue-tsc 2.0.14
+ vue-tsc 1.8.27 (2.0.14 is available)

Done in 9s
PS C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called> pnpm run validate:typescript

> [email protected] validate:typescript C:\Users\Wazbat\Documents\code\whatever-my-folder-is-called
> nuxi typecheck

ℹ Using default Tailwind CSS file nuxt:tailwindcss 21:43:44
Untitled-1.vue:30:5 - error TS2322: Type 'boolean | undefined' is not assignable to type 'string | number | Record<string, any> | unknown[] | undefined'.

30 v-model="value"
~~~~~~~

node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue.d.ts:354:5
354 modelValue: string | number | unknown[] | Record<string, any>;
~~~~~~~~~~
The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ size: SelectSize; ui: any; id: string; icon: string; color: any; class: any; options: string[] | { [key: string]: any; disabled?: boolean | undefined; }[]; popper: PopperOptions; ... 27 more ...; showCreateOptionWhen: "empty" | "always"; }> & Omit<...> & Record<...>'


Found 1 error in Untitled-1.vue:30


ERROR Command failed with exit code 2: vue-tsc --noEmit 21:44:01
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
Ahhh let me test that
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
What version of vue-tsc are you using?
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
Yeah that one doesn't work for me on my local. I get this error
Untitled-1.vue:30:5 - error TS2322: Type 'boolean | undefined' is not assignable to type 'string | number | Record<string, any> | unknown[] | undefined'.

30 v-model="value"
~~~~~~~~~~

node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue.d.ts:354:5
354 modelValue: string | number | unknown[] | Record<string, any>;
~~~~~~~~~~
The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ size: SelectSize; ui: any; id: string; icon: string; color: any; class: any; options: string[] | { [key: string]: any; disabled?: boolean | undefined; }[]; popper: PopperOptions; ... 27 more ...; showCreateOptionWhen: "empty" | "always"; }> & Omit<...> & Record<...>'


Found 1 error in Untitled-1.vue:30
Untitled-1.vue:30:5 - error TS2322: Type 'boolean | undefined' is not assignable to type 'string | number | Record<string, any> | unknown[] | undefined'.

30 v-model="value"
~~~~~~~~~~

node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]/node_modules/@nuxt/ui/dist/runtime/components/forms/SelectMenu.vue.d.ts:354:5
354 modelValue: string | number | unknown[] | Record<string, any>;
~~~~~~~~~~
The expected type comes from property 'modelValue' which is declared here on type 'Partial<{ size: SelectSize; ui: any; id: string; icon: string; color: any; class: any; options: string[] | { [key: string]: any; disabled?: boolean | undefined; }[]; popper: PopperOptions; ... 27 more ...; showCreateOptionWhen: "empty" | "always"; }> & Omit<...> & Record<...>'


Found 1 error in Untitled-1.vue:30
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
Here's the same with an input. This one also doesn't compile
<script setup lang="ts">
const value = ref<string | null | undefined>(undefined);
</script>

<template>
<div>
<UInput v-model.trim="value" />
</div>
</template>
<script setup lang="ts">
const value = ref<string | null | undefined>(undefined);
</script>

<template>
<div>
<UInput v-model.trim="value" />
</div>
</template>
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
I was able to fix my inputs by type casting to string|undefined which while not ideal, works. But this here with the select is a blocker as I can't type cast my way out of it ...well I can but it's a mess and I'd rather just fix the problem
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
I'm trying to set up a small proper example with a UInput now
20 replies
NNuxt
Created by Wazbat on 4/23/2024 in #❓・help
null values in nuxt ui input
I have similar typeerrors with both components
20 replies