What are the Slack Archives?
Itโs a history of our time together in the Slack Community! Thereโs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonโt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
I'm getting this when calling the zed UI locally: ```Uncaught TypeError: $.fn.dataTable is undefined
I'm getting this when calling the zed UI locally:
Uncaught TypeError: $.fn.dataTable is undefined setTableErrorMode data-table.js:41 js init.js:57
Could anybody point me to the package missing, please?
Comments
-
spryker/gui 3.40.0
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
U have to udate spryker/oryx-for-zed npm library and then rebuild the zed frontend
0 -
Already having the latest 2.11.3.
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
did u run all again?
frontend:project:install-dependencies
fronten:zed:install-dependencies
frontend:zed:build -e <environment)0 -
Yes, doesn't help.
I'm having spryker/gui 3.40.0 btw.0 -
This is the complete browser console log. Anything suspicious, maybe a version mismatch?
Uncaught TypeError: $.fn.dataTable is undefined setTableErrorMode data-table.js:41 js init.js:57 jQuery 13 Webpack 9 data-table.js:41:5 setTableErrorMode data-table.js:41 js init.js:57 jQuery 13 Webpack 9
The error gets thrown due to this line in vendor/spryker/gui/src/Spryker/Zed/Gui/Presentation/Layout/layout.twig:
<script src="{{ assetsPath('js/spryker-zed-gui-commons.js') }}"></script>
0 -
Seems that the JS error vanishes after updating spryker/gui from 3.40.0 to 3.40.1.
0 -
giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐ง๐ปโ๐ - Cadet
Yes I know, a lot of people had the same problem, but with update oryx-for-zed and rebuild is gone..
Stupid question: Browser cache empty??0 -
Yes.
0 -
Funny enough, last time I was updating spryker/gui, I had to freeze it to 3.40.0 to get rid of JS errors. This time it's the exact opposite...
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random