Git Product home page Git Product logo

Comments (8)

joshxyzhimself avatar joshxyzhimself commented on May 30, 2024

from fetch-blob.

LinusU avatar LinusU commented on May 30, 2024

@pkieltyka which version of Node are you running? You need at least 12.20 or 14.13, as indicated here:

"node": "^12.20 || >= 14.13"

from fetch-blob.

ThornWalli avatar ThornWalli commented on May 30, 2024

Have the same problem with node 16.15.0 in a nuxt project. I suspect Webpack when importing from thenode_modules, seems to be missing Babel for the transpile.

I use the "Private Class Fields" in my project, so Babel Configuration works.

When I do the transpile via nuxt I still get these warnings:

image

from fetch-blob.

LinusU avatar LinusU commented on May 30, 2024

@ThornWalli are you packaging for the browser? The browser already has it's own Blob and File, this is for the Node.js runtime...

from fetch-blob.

ThornWalli avatar ThornWalli commented on May 30, 2024

I use the package ‘cross-blob‘.
https://www.npmjs.com/package/cross-blob

The background here is the client and server build.

from fetch-blob.

LinusU avatar LinusU commented on May 30, 2024

Do you actually get any errors, or are you just getting warnings about node:* imports? This issue is specifically about the Module parse failed: Unexpected character '#' error...

from fetch-blob.

jimmywarting avatar jimmywarting commented on May 30, 2024

Think you should rather do some code splitting, do some conditional loading to load fetch-blob only when needed.

from fetch-blob.

jimmywarting avatar jimmywarting commented on May 30, 2024

Got no more response...
just update your dependencies, all evergreen browser and backends all do support private class field right now...

from fetch-blob.

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.