olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.71k stars 818 forks source link

Fail to load: "https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js". #4463

Closed RodrigoPinel-Tower closed 6 months ago

RodrigoPinel-Tower commented 6 months ago

Describe the bug The table doesn't show because it doesn't recognise Tabulator when i create it (const table = new Tabulator...). Also it appears this message on the browser: El recurso de “https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js” fue bloqueado debido a una discordancia del tipo MIME (“text/html”) (X-Content-Type-Options: nosniff). Last months it wordked perfectly but suddenly it stop working. I didnt touch anything on the program on the last months, and suddenly, it doesnt show the table:

Tabulator Info 6.1

Working Example YOU MUST include a link to a JS Fiddle or Codepen that demonstrates the problem, it is very hard to diagnose an issue from a simple description.

To Reproduce A step by step guide to recreate the issue in your JS Fiddle or Codepen:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior To see the table, but it doesnt't show

Screenshots imagen imagen

Desktop (please complete the following information):

olifolkerd commented 6 months ago

hey @RodrigoPinel-Tower

It looks like there is an extra quotation month at the end of your URL in your comment there, if you remove that it all works fine: https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js

And in your code pen this is happening becuase you are including the script tag in the HTML box which loads after the JS in injected, where you need to add it on the settings page image

If you do that, you will see it loads fine.

This suggests that in your actual code you are including Tabulator after you are trying to instantiate it. or possibly loading it asynchronously

Cheers

Oli :)