3ventic / discord-rss

Lightweight, easy-to-use RSS feed => Discord service
MIT License
17 stars 4 forks source link

Warnings? #9

Closed argonan0 closed 1 year ago

argonan0 commented 1 year ago
npm run sync

> discorss@0.11.0 sync
> svelte-kit sync

(node:278069) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)
(node:278069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:278069) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
3ventic commented 1 year ago

cannot repro, are you using supported versions of node/npm?

argonan0 commented 1 year ago

Installed what Ubuntu 22.04.2 LTS includes:

$ node --version
v12.22.9
$ npm --version
8.5.1

I guess not as Node should be v18+ ...?

3ventic commented 1 year ago

I would recommend using https://github.com/nvm-sh/nvm

argonan0 commented 1 year ago
:~/discord-rss$ npm run sync

> discorss@0.11.0 sync
> svelte-kit sync

> Unexpected option config.kit.browser
    at file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/core/config/options.js:314:12
    at file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/core/config/options.js:321:18
    at validate_config (file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/core/config/index.js:108:9)
    at process_config (file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/core/config/index.js:80:20)
    at load_config (file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/core/config/index.js:72:9)
    at async file:///home/.../discord-rss/node_modules/@sveltejs/kit/src/cli.js:36:19
$ npm --version
9.6.6
$ node --version
v20.2.0
argonan0 commented 1 year ago

@3ventic Any ideas?

3ventic commented 1 year ago

did you upgrade any dependencies from what's defined in the main branch right now? I know there are some breaking changes to sveltekit's config from the prerelease version that was used for this and I haven't felt the urge to upgrade it yet.

argonan0 commented 1 year ago

did you upgrade any dependencies from what's defined in the main branch right now? I know there are some breaking changes to sveltekit's config from the prerelease version that was used for this and I haven't felt the urge to upgrade it yet.

I do not know. I believe I ran npm update at one point.

argonan0 commented 1 year ago

did you upgrade any dependencies from what's defined in the main branch right now? I know there are some breaking changes to sveltekit's config from the prerelease version that was used for this and I haven't felt the urge to upgrade it yet.

@3ventic How would I reset the environment so it's as if I never did those things?

argonan0 commented 1 year ago

Appears that this does not work on 18+ necessarily

argonan0 commented 1 year ago

Use exactly these versions:

npm --version
9.7.1
node --version
v18.16.0