Code Monkey home page Code Monkey logo

Comments (12)

daniel-jones-deepl avatar daniel-jones-deepl commented on August 20, 2024 1

Hi @dcoales, thanks for creating this issue. Thank you to the others for saying you're also affected.

I was able to reproduce the issue; it appears that URLSearchParams is not supported in the Node environment that logseq uses. By quickly removing URLSearchParams from deepl-node I was able to get it working in logseq in a limited way. Unfortunately to make this change without breaking other parts of the library is more difficult. I'll update when I have more information.

from deepl-node.

daniel-jones-deepl avatar daniel-jones-deepl commented on August 20, 2024 1

Hi @glumb, this problem doesn't occur in any "native" node version we support, rather with logseq that we haven't specifically tested in yet. One could argue that changing the lib to extend support for logseq would be an enhancement 😉

However, you're right, it's clearer if we label this a bug.

from deepl-node.

tomsour1s avatar tomsour1s commented on August 20, 2024

Same Problem.

from deepl-node.

blandinf avatar blandinf commented on August 20, 2024

same problem

from deepl-node.

teh0 avatar teh0 commented on August 20, 2024

Same problem

from deepl-node.

usbme avatar usbme commented on August 20, 2024

Same problem

from deepl-node.

glumb avatar glumb commented on August 20, 2024

How is this labelled as enhancement when it is clearly a bug? 😀
We are running into the same error with node 14.18.1

from deepl-node.

dsokopp avatar dsokopp commented on August 20, 2024

same issue here. Running into the error with node 16.x and 18.13.0

from deepl-node.

dsokopp avatar dsokopp commented on August 20, 2024

Any updates on this @daniel-jones-deepl? Cant't use this library with the bug and our configuration..

from deepl-node.

MariusGoth avatar MariusGoth commented on August 20, 2024

@daniel-jones-deepl
Are there any updates on this issue?

from deepl-node.

seekuehe avatar seekuehe commented on August 20, 2024

Daniel is out at the moment, but our team will look into this

from deepl-node.

JanEbbing avatar JanEbbing commented on August 20, 2024

A workaround is to put

import * as url from "url";
url.URLSearchParams = URLSearchParams;

at the top of the file (e.g. at the end of the imports, outside the main function). That allows me to translate with the plugin. The issue is webpack injecting a different version of url, I am investigating a clean way to fix this.

from deepl-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.