fitty_module is not a function
See original GitHub issueHi
I’m getting TypeError: fitty_module is not a function
when using Fitty with Rollup.
I’m doing this:
import fitty from 'fitty'
fitty('.my-element');
My Rollup config is essentially this.
What am I doing wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Uncaught TypeError: myModule.function is not a function
The problem surly is the order of your define imports , the myModule is refering to other loaded module in the define ,...
Read more >Provide uncompressed transpiled version of fitty as ... - GitHub
Currently, if I install fitty from npm and try to import like this import fitty from 'fitty' then the fitty.js file will be...
Read more >Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
Read more >How to fix "Uncaught TypeError: x is not a function" in JavaScript
JS Casts 01 - How to fix "Uncaught TypeError: x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/01 for a summary ...
Read more >How to Uncaught TypeError: x is not a function - YouTube
TypeError: "x" is not a functionThe JavaScript exception "is not a function " occurs when there was an attempt to call a value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That resulted in the same error for me, but did prompt me to try the below, which seems to work. 👍
Just tested with codesandbox but seems to work fine: https://codesandbox.io/s/fitty-demo-bzkfb?file=/src/index.js