π Have you checked Spicetify.app page for your issue?
π Is there already an issue for your problem?
βΉ Environment / Computer Info
- Spotify version: 1.2.89
- Spicetify version: v3
π Description
Some exports in v3 are undefined even though the regex replacement appears to succeed correctly.
Broken exports:
- Panel
- Snackbar
- ReactFlipToolkit
- ContextMenu
- Tippy (idk if we should even keep this when tootip component exists)
These same regexes work correctly in v2.
Snackbar Example
This does not work:
const { enqueueSnackbar } = await import("/modules/stdlib/src/expose/Snackbar.js");
console.log(enqueueSnackbar);
But as alternative the notistack react hook which is exposed with webpack works:
import { useSnackbar } from "/modules/stdlib/src/webpack/Snackbar.js";
const { enqueueSnackbar } = useSnackbar();
Panel example
This transform works in v2 but returns undefined in v3:
V2
preprocess.go
{
Name: "panel",
Regex: `(=\(0,[a-zA-Z_$][\w$]*\.[a-zA-Z_$][\w$]*\)\(\{id:"RightPanelState)`,
Replacement: func(submatches ...string) string {
return fmt.Sprintf(`=globalThis.Spicetify.PanelMachine%s`, submatches[1])
},
},
console.log(Spicetify.PanelMachine); this returns the machine object
V3
const { Machine } = await import("/modules/stdlib/src/registers/Panel.js");
console.log(Machine); this returns undefined
πΈ Screenshots
No response
π Have you checked Spicetify.app page for your issue?
π Is there already an issue for your problem?
βΉ Environment / Computer Info
π Description
Some exports in v3 are undefined even though the regex replacement appears to succeed correctly.
Broken exports:
These same regexes work correctly in v2.
Snackbar Example
This does not work:
But as alternative the notistack react hook which is exposed with webpack works:
Panel example
This transform works in v2 but returns undefined in v3:
V2
preprocess.goconsole.log(Spicetify.PanelMachine);this returns the machine objectV3
console.log(Machine);this returns undefinedπΈ Screenshots
No response