#CW crafting not showing a preview with pnpm dev

1 messages · Page 1 of 1 (latest)

silk sierra
#

Hey Coffee, hows u? im trying to change how the crafting look like so it fits within my server's theme, but when i do pnpm dev or preview it shows a blank page

foggy anvil
#

Hey Anna 7735_pepe_wave Yeah it needs player data to be used I think. I never got to spoofing data for it to be used in browser devving

#

if you run watch you can just hot-reload it in game tho

silk sierra
#

Yea but i do like using it on the browser so it changes irl, and not use nui devtools as they are very wonky

foggy anvil
#

Then I got bad news sadge

silk sierra
foggy anvil
#

I usually make a fake data debug thing when I start and then I'm to lazy to keep up with changed 🦥

silk sierra
silk sierra
#

Well then

silk sierra
#

This is what i get when trying to build

#

I spent an hour using dev tool and at the end i got an error lmao

silk sierra
#

@foggy anvil Can u send me buildable web file please?

foggy anvil
#

The web files on git are buildable no?

silk sierra
#

Nope

#

I redownloaded it

#

And nothing

#

:/

#

I tried the old version i had too

#

And still same error

foggy anvil
#

that's weird

#

I alwasy build the versions before pushing

#

so that sounds strange

silk sierra
#

Yea

foggy anvil
#

what if you use npm instead of pnpm

silk sierra
#

Never used npm

#

Is that what u use?

foggy anvil
#

Yeah, had problems using pnpm on windows before

#

npm is like the old betsy. Kinda shitty but it alwasy works PepeLaugg

silk sierra
#

Im just kinda bummed that i spent a lot of time doing the ui and then it broke on me

#

Have to do that all again

foggy anvil
#

Hmmm

#

did you do pnpm i first?

silk sierra
#

Yea

#

IT all works

#

Watch

#

dev (but doesnt show)

#

Until i got to build

#

and i get this

silk sierra
foggy anvil
#

I have no idea what that error means

#

it's something with TS compiling

#

Maybe there's some version that's messed shit up

silk sierra
#

Well

foggy anvil
#

Which is why the npm works as it has the packagelock

silk sierra
#

Npm run build is also erroring

foggy anvil
#

This deffo smells like some package version issue

silk sierra
#

Imma cry

foggy anvil
#

Did you do npm i? if so, can you try grabbing the latest package-lock on git instead?

silk sierra
#

It works normal

#

Until the build

foggy anvil
#

But watch works?

silk sierra
foggy anvil
#

Because watch also builds if you change something evil

silk sierra
#

Well you know when u change something in the nui dev tools

#

it should say that something changed no ?

#

I do no believe it does on this one

#

When i do npm run watch

foggy anvil
#

Try deleting the dist

#

and then run watch

silk sierra
#

Same warning

foggy anvil
#

It's deffo a "works on my machine" kinda situation

silk sierra
#

Prolly cuz i use the latest updates?

#

Like it does show this at the end

#

But npm run build or pnpm build

#

Does not

foggy anvil
#

It says 2.0.3 here

silk sierra
#

I cant see that lmao

#

Its very small

foggy anvil
#

That's a screencap from you

#

You're not on latest version

silk sierra
#

How do i go on on updating it

#

IF it doesnt using npm i

foggy anvil
#

Try grabbing the latest version. Put it somewhere else and do a build

#

see if it works

silk sierra
#

OH u mean of the script?

foggy anvil
#

yeah

silk sierra
#

I tried the same procedures

#

This is on the latest

foggy anvil
#

and do a build

silk sierra
#

Oh now its working with npm

#

I'll kill someone

foggy anvil
#

You were 10 minors behind

#

and one major

#

or uh 10 patches and one minor I mean

silk sierra
#

Yea i know Hehe

#

But since it didnt work with pnpm

#

i reverted back to the version i had

#

before updating

#

Also

#

For watch

#

I just change stuff in nui dev tools

#

And it does the changes right?

foggy anvil
#

yeah

#

but you gotta restart the script

silk sierra
#

Yea

foggy anvil
#

watch just auto-builds

silk sierra
#

Thank you

#

Time to wither away and drown in my tears with ui

foggy anvil
silk sierra
#

It stays like this

foggy anvil
#

ah wait no, changing in nui dev tools wont do anything

#

you gotta change in the code

silk sierra
#

Ah

#

What code tho

#

Since its obfuscated

foggy anvil
#

obfuscated?

#

where?

#

html/src/ has tons of css and vue files to edit

silk sierra
#

Oh yea

#

Im too annoyed lmao

#

I need to take a break

foggy anvil
#

Get off the computer Anna dogbonk

silk sierra
#

Yea i cant figure out how this is made

#

Its not like svelte

foggy anvil
#

For most fixes you probably only need to modify the theme

#

theme is found in src/plugins/vuetify.ts

silk sierra
#

Is night and day

#

trying to find this

#

Cant for the life of me

foggy anvil
#

ironically the only thing in the actual theme

#

that i customized

silk sierra
#

Well how i want it is not just change the color

#

Its a whole thing

#

This whole thing

foggy anvil
#

you can probably override vuetify classes

silk sierra
foggy anvil
#

The link i sent is the ui framework

#

which is what you're battling against

silk sierra
#

How would u go on about this

foggy anvil
#

probably google how to override classes and do it that way

#

sinec I don't remeber how to

silk sierra
foggy anvil
#

might be possible to just use the theme that I linked also

silk sierra
#

Something like this ?

#

Im giving up

#

@foggy anvil Lmao i said fuck it

#

I just had enough