filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Error in Chrome when using import #324

Closed sjorsjes closed 5 years ago

sjorsjes commented 6 years ago

I'm experiencing a bug in Chrome (i'm using v62). It's throwing an error when using ES2015 imports. I'm using the latest 3.0.6 version installed through NPM. Firefox/Edge works normally.

error

By using something like this for example:

import Tablesaw from 'tablesaw';

class TableSaw {
    constructor(el) {
        Tablesaw.init();
    }
}

export default TableSaw;

The error builds up when resizing or scrolling the window. Seems like shoestring is always doing something, even if Tablesaw is not initialized. When using regular inline script tags everything works as it should.

zachleat commented 6 years ago

Hmm, @sjorsjes I’m having trouble making it as far as you have in the above example.

How did you get around this error without modifying the tablesaw JS?

Uncaught SyntaxError: The requested module does not provide an export named 'default'

zachleat commented 5 years ago

This is an automated message to let you know that this issue requires additional input from the original poster and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

Do not let the issue’s closing deter you. After you’ve supplied the required information, the issue will be reopened. Thanks!