Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it deno friendly #370

Open
antonkulaga opened this issue Nov 24, 2024 · 1 comment
Open

make it deno friendly #370

antonkulaga opened this issue Nov 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@antonkulaga
Copy link

I tried to build it with deno 2, but got following error:

┠─ npm:[email protected] (This version is no longer supported. Please see https://eslint.org/version-support for other options.)
┠─ npm:@humanwhocodes/[email protected] (Use @eslint/config-array instead)
┠─ npm:@humanwhocodes/[email protected] (Use @eslint/object-schema instead)
┠─ npm:[email protected] (Rimraf versions prior to v4 are no longer supported)
┠─ npm:[email protected] (Glob versions prior to v9 are no longer supported)
┖─ npm:[email protected] (This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.)
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
┠─ npm:[email protected]
┃
┠─ This may cause the packages to not work correctly.
┖─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`:
   deno install --allow-scripts=npm:[email protected]
antonkulaga@orca:~/sources/fine-tuning/ui$ deno run dev
Task dev next dev
error: Uncaught (in promise) ReferenceError: module is not defined
module.exports = nextConfig;
^
    at file:///home/antonkulaga/sources/fine-tuning/ui/next.config.js:7:1

    info: Deno supports CommonJS modules in .cjs files, or when the closest
          package.json has a "type": "commonjs" option.
    hint: Rewrite this module to ESM,
          or change the file extension to .cjs,
          or add package.json next to the file with "type": "commonjs" option.
    docs: https://docs.deno.com/go/commonjs
@vishnoianil vishnoianil added the bug Something isn't working label Dec 4, 2024
@vishnoianil vishnoianil added this to UI Dec 4, 2024
@vishnoianil vishnoianil moved this to Backlog in UI Dec 4, 2024
@vishnoianil
Copy link
Member

@antonkulaga Would you like to take a stab at this issue? I would love to see fix for this issue. Happy to review the PR if you push one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants