Wix Backend is Changing - everything you need to know about the new .web.js files.
Вставка
- Опубліковано 11 жов 2024
- #wix #wixwebsite #wixtutorial #website #webdesign #webdev
Timeline:
00:25 Transition from .jsw to .web.js
01:57 Understanding backend code in Wix
02:49 Transition timeline
03:04 Example of old .jsw file function
04:01 Importance of backend operations
04:41 Managing permissions in backend files
05:49 Permission error demonstration
06:32 Adjusting permissions
07:56 Introduction to .web.js files
08:50 Defining permissions in .web.js
09:57 Converting function to .web.js format
11:11 Permission error on live site
12:47 Reason for the transition to .web.js
14:59 Limitations of web method permissions
16:18 Conclusion and final thoughts
New to Velo? Try my new Velo for Beginners course now on Udemy!
www.udemy.com/...
Have an idea for a video? suggest it here:
www.thewixwiz....
Have questions? Join the discussion:
www.thewixwiz....
Want to have joint coding session? Book one now:
www.thewixwiz....
Have questions? Need some magic done on your website ASAP?
www.thewixwiz....
Follow along on Twitter @thewixwiz
Facebook page: / thewixwiz
Facebook community: / thewixwiz
Good video; I intend to watch again. BTW - I tried for ten minutes to sign up on your web site but could not get it done.
Thanks! What were you trying to sign up for?
I literally just dealt with this change too and I’m still having some issues with the front end saying the backend doesn’t exist. Kinda buggy with blocks but I do understand the change.
Encountered a similar issue with Blocks... Thanks for sharing 🙏
Damn, a Wix dev told me about this and said that it would be backwards compatible. Hope I’m able to figure out how to convert my current code without too much pain.
They may know something I don't! I'm just working off the official announcements but maybe Wix realized this isn't such a good idea and will backtrack 🤷
@@thewixwizyea I’m going to ask them again.
@@AnthonyAllioo cool, please let us know 🙏
@@thewixwiz “Yes, it will continue to work but for new projects, I would reccomend switching bc we are updating all the documentation to .web.js for the examples”
@@AnthonyAllioo Oh interesting! Thanks for sharing!
Thank you for your helpful video. when i try to run this code in my wix IDE, i always get this error: Uncaught Error Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'wix-web-module' imported from /user-code/src/backend/, pretty much for any import module im getting this this type of error. is that normal? or i shouldnt run it?
I would double check your import statements and make sure you are exporting the modules with the 'export' keyword.
May I my code is
export const queryBookings = webMethod(Permissions.Anyone, () => {
return bookings.queryBookings()
.hasSome("status", ["PENDING_CHECKOUT", "CONFIRMED", "CANCELED", "PENDING", "PENDING_APPROVAL", "DECLINED"])
.find()
But I am still with the Permission error.
What should I do?
Thank you so much!
Hi, please post code questions on the Wix Wiz forum.
I have a question, is axios included in velo by default? meaning we don't need to install it in the npm modules?
It needs to be installed as an npm package
like allways great video
Nice
Can we use it in Wix blocks?
Yup!
Link to the wix discord please
discord.gg/bDzFny8p
its becoming next js 😭 the reason i came to wix was next js. i loved react, hate next js
I don't mind next.js just they change it every 5 minutes so it's hard to keep track lol
@@thewixwiz Yupp thats why i came to wix & i found out almost 90% of real life apps booking or ecom or any data management apps can be easily built on wix. velo is good, however i prefer using my own apis as setting up express with mongoDB is my fav
Hey dear Please make a tutorials on Wix booking.atleast 5 o 6 different videos 😅 on Wix booking.
Thanks for the suggestion!
getting ready to shut YOU all down....unless you go along...
this seems pretty objectively worse (?) unless I'm missing something it just seems like there would have been so many better ways to do this :-(
Unless there are some hidden benefits I tend to agree. It was more of a constraint due to the new IDE.
ua-cam.com/video/ffj0ycGg-m0/v-deo.html This isnt working its saying the app is no longer available
Thanks, I'm currently working on making this available on the Wix App Marketplace. I will notify everyone on the mailing list when it is :)
this sux
why?
coz i have like 1000 backend functions to change???? im still hoping that WIX AI will solve this for us in forward@@bergonius