SK 1.3.9 in production, when fetch +server.js endpoint, get: Error: Could not dynamically require "url"... #8849
-
Before 1.3.9 this runs ok, but I can't sure in what version (1.3.x). I am using a custom server (express) with handle.js middleware. In dev mode runs ok. This is the function I use to fetch: const getAccount = async (_id) => {
try {
$loading = true;
const submit = await fetch('/api', {
method: 'PUT',
body: JSON.stringify({ cmd: 'getAccount', _id }),
headers: {
accept: 'application/json'
}
});
display = (await submit.json()).row;
$loading = false;
} catch (error) {
console.error(error);
}
};
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well... it is no SK issue. In this endpoint Seems happens in react also Sorry for the noise. I leave the post for reference only. |
Beta Was this translation helpful? Give feedback.
-
For those that has the same problem... after a few tests, installed Mediainfo as |
Beta Was this translation helpful? Give feedback.
For those that has the same problem... after a few tests, installed Mediainfo as
dependencies
(nodevDependencies
) seems fix the issue.