Skip to content
New issue

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

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

Already on GitHub? # 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:eslint@8.57.1 (This version is no longer supported. Please see https://eslint.org/version-support for other options.)
┠─ npm:@humanwhocodes/config-array@0.13.0 (Use @eslint/config-array instead)
┠─ npm:@humanwhocodes/object-schema@2.0.3 (Use @eslint/object-schema instead)
┠─ npm:rimraf@3.0.2 (Rimraf versions prior to v4 are no longer supported)
┠─ npm:glob@7.2.3 (Glob versions prior to v9 are no longer supported)
┖─ npm:inflight@1.0.6 (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:sharp@0.33.5
┃
┠─ 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:sharp@0.33.5
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.

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

No branches or pull requests

2 participants