Hi Tim, thanks a lot for the tutorial, however, when I try to save a note on my localhost, React shows an error: Uncaught TypeError: e.PreventDefault is not a function
createNote Home.jsx:38 - this is the
const createNote = (e) => {
e.preventDefault();
api
...
part. I have verified, the source matches your one downloaded from GitHub.
Of course I tried to google the error, but could not get anything useful.
npm version
{
frontend: '0.0.0',
npm: '10.8.2',
node: '22.4.1',
acorn: '8.11.3',
ada: '2.8.0',
ares: '1.31.0',
brotli: '1.1.0',
cjs_module_lexer: '1.2.2',
cldr: '45.0',
icu: '75.1',
llhttp: '9.2.1',
modules: '127',
napi: '9',
nbytes: '0.0.1',
nghttp2: '1.62.1',
nghttp3: '0.7.0',
ngtcp2: '1.3.0',
openssl: '3.0.13+quic',
simdjson: '3.9.4',
simdutf: '5.2.8',
sqlite: '3.46.0',
tz: '2024a',
undici: '6.19.2',
unicode: '15.1',
uv: '1.48.0',
uvwasi: '0.0.21',
v8: '12.4.254.21-node.15',
zlib: '1.3.0.1-motley-209717d'
}
Do you have an idea how to solve the problem?
Hi Tim, thanks a lot for the tutorial, however, when I try to save a note on my localhost, React shows an error: Uncaught TypeError: e.PreventDefault is not a function createNote Home.jsx:38 - this is the const createNote = (e) => { e.preventDefault(); api ... part. I have verified, the source matches your one downloaded from GitHub. Of course I tried to google the error, but could not get anything useful. npm version { frontend: '0.0.0', npm: '10.8.2', node: '22.4.1', acorn: '8.11.3', ada: '2.8.0', ares: '1.31.0', brotli: '1.1.0', cjs_module_lexer: '1.2.2', cldr: '45.0', icu: '75.1', llhttp: '9.2.1', modules: '127', napi: '9', nbytes: '0.0.1', nghttp2: '1.62.1', nghttp3: '0.7.0', ngtcp2: '1.3.0', openssl: '3.0.13+quic', simdjson: '3.9.4', simdutf: '5.2.8', sqlite: '3.46.0', tz: '2024a', undici: '6.19.2', unicode: '15.1', uv: '1.48.0', uvwasi: '0.0.21', v8: '12.4.254.21-node.15', zlib: '1.3.0.1-motley-209717d' } Do you have an idea how to solve the problem?