JonL
March 18, 2023, 11:03am
1
Wappler Version : 5.5.2
Operating System : MacOS
Expected behavior
What do you think should happen?
Local scoped extension components should register in the UI
Actual behavior
What actually happens?
They don’t. Using same hjson file to test.
The test extension registers correctly with the UI but the scoped one doesn’t.
Doesn’t register:
extensions/app_connect/@jonl1/wappler-ac-dicebear/app_connect/components.hjson
Registers:
extensions/app_connect/test/app_connect/components.hjson
The contents of the components.hjson
is exactly the same. No errors in it. I’m using the demo one you created.
@George
1 Like
George
March 18, 2023, 12:26pm
2
The extensions doesn’t register under extensions/
but under node_modules/
extensions/
we use only for custom server connect extensions and those registrations are coming up.
JonL
March 18, 2023, 4:13pm
3
I need to double check later but I think this also happens in any other path.
JonL
March 18, 2023, 9:15pm
4
@george I can confirm that the problem is not with the extensions
folder.
The problem is with the name of the module in package.json
. If the name is scoped it won’t register. If it’s not scoped it will register.
Maybe it’s not be picking up extensions installed in subfolders in node_modules
when installing from file? Are you using npm link
?
That same extension when installed from remote registers correctly and it respects the /node_modules/@scope/extension
structure upon install.
I’ve done several tests and that’s the pattern.
George
March 19, 2023, 5:39pm
5
Is the name correctly and scoped in your package.json ? Because we generate that only initially when there is no package.json yet.
So if you manually converted from not scoped to scoped you also have to adjust the name in the package.json
JonL
March 19, 2023, 8:44pm
6
Yes I double checked. That’s not the problem.
I just created a brand new Wappler project, added a scoped folder structure and used the example hjson from the tutorial. It doesn’t register. It is very easy to reproduce.
Create scoped folder structure.
Create the extension pointing to the extension folder.
Package.json is created correctly with the right name.
Symlink is created correctly in node_modules
But it doesn’t register.
1 Like
George
March 20, 2023, 9:33am
8
Found the bugger will be fixed in the next update
1 Like
karh
March 20, 2023, 12:08pm
9
Just dirtying this thread to put my thanks somewhere.
@JonL Thank you for testing the new extensions so thoroughly. I am so excited to try use it but can’t due to some deadlines.
You trained me like Pavlov’s dogs… whenever I see the glorious Ukranian flag pop up I know my future app connect extension is going to be much easier to make!
2 Likes
Teodor
Closed
March 23, 2023, 4:00pm
13
This topic was automatically closed after 46 hours. New replies are no longer allowed.