Hro
Hro
Explore posts from servers
NNuxt
Created by Hro on 11/16/2024 in #❓・help
Fresh project with nuxt ui pro and pnpm
I am getting ERROR Named export 'compile' not found. The requested module 'tailwindcss' is a CommonJS module, which may not support all module.exports as named exports. on a monorepo with nuxt 3 & nuxt ui 3. Not sure what the cause is of this. Can anyone provide some guidance?
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/ui": "3.0.0-alpha.8",
"nuxt": "^3.14.159",
"tailwindcss": "4.0.0-alpha.34",
"vue": "latest",
"vue-router": "latest"
}
}
{
"name": "nuxt-app",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/ui": "3.0.0-alpha.8",
"nuxt": "^3.14.159",
"tailwindcss": "4.0.0-alpha.34",
"vue": "latest",
"vue-router": "latest"
}
}
10 replies
NNuxt
Created by Hro on 10/11/2024 in #❓・help
When I have a nuxt child page (path route) can I opt out of the parent page being rendered
I would like to have full control over the page, without inheritance
1 replies
NNuxt
Created by Hro on 6/21/2024 in #❓・help
How to close programmatically opened nuxt ui modal from within the modal
I have a modal that opens like this: modal.open(SomeModal, {onClose() => {console.log('closed')}) When clicking outside the modal, it console logs properly, however, when I call modal.close() from inside the modal it does not. What's the proper way to close the modal from inside? (a cancel button for example)
3 replies
FFilament
Created by Hro on 2/2/2024 in #❓┊help
How to refresh sub navigation badge using a livewire event?
The navigation badge shows a count of how many items there are, however, when adding an item I cannot refresh this badge.
4 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
So, when I have a lot of components that use actions, I get history.replaceState in safari (or its equivalent in chrome) SecurityError: Attempt to use history.replaceState() more than 100 times per 10 seconds I have looked around and could not really find a similar issue.
4 replies
FFilament
Created by Hro on 10/31/2023 in #❓┊help
Fill defaults on create with $attributes from model
Hi, Wondering if I am overlooking something. I would love to always fill the defaults in the form based on the default attributes in the model. Currently I am adding this to the mount in the create pages:
$this->form->fill($this->getModel()::make()->attributesToArray());
$this->form->fill($this->getModel()::make()->attributesToArray());
But I kinda feel this should be done already somehow?
3 replies
FFilament
Created by Hro on 8/13/2023 in #❓┊help
Arguments are lost on reactive forms
1 replies
FFilament
Created by Hro on 8/4/2023 in #❓┊help
Optional tenancy registration
Is it possible to have tenancy optional? So it is not required to belong to a tenant.
4 replies
FFilament
Created by Hro on 4/25/2023 in #❓┊help
Getting the attached and parent record in a relation manager hook
I know there is a way, I just cannot seem to directly figure out which one.
Tables\Actions\AttachAction::make()->after(function () {
dd('attached');
}),
Tables\Actions\CreateAction::make()->after(function () {
dd('Created');
}),
Tables\Actions\AttachAction::make()->after(function () {
dd('attached');
}),
Tables\Actions\CreateAction::make()->after(function () {
dd('Created');
}),
In the hooks above, how can I get the attached record and the record it was attached to?
11 replies
FFilament
Created by Hro on 4/18/2023 in #❓┊help
Repeaters without grey topbar
3 replies