Simplest example does not work
d8corp opened this issue · comments
I create the simplest example with latest versions of libs and chrome. It does not change the textarea height.
Check it here:
https://stackblitz.com/edit/stackblitz-starters-3yw9em?file=src%2Findex.tsx
import { createRoot } from 'react-dom/client';
import TextareaAutosize from 'react-textarea-autosize';
const root = createRoot(document.getElementById('app'));
root.render(
<div>
<TextareaAutosize />
</div>
);
Stackblitz doesnt configure the browser
condition here and it picked up a bundle that is meant to be loaded in server environments.
I updated react-textarea-autosize in my project from 6.1.0 to 8.5.3 to have ref prop and it had broken.
the 6.1.0 works on Stackblitz (https://stackblitz.com/edit/stackblitz-starters-enhi95?file=src%2Findex.tsx)
What bundler do you use in your project?
webpack, babel-loader
7.1.2 works fine
What version of webpack? is it a custom configuration or are you using it through some framework~?
Custom configuration, webpack 4.