Comments (8)
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields
- https://caniuse.com/mdn-javascript_classes_private_class_fields
from fetch-blob.
@pkieltyka which version of Node are you running? You need at least 12.20 or 14.13, as indicated here:
Line 29 in dc29588
from fetch-blob.
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:
from fetch-blob.
@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.
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.
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.
Think you should rather do some code splitting, do some conditional loading to load fetch-blob only when needed.
from fetch-blob.
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)
- Run test against WPT
- Move check to the top
- exec `npm run test test-wpt` with github workflows
- Use stream consumers HOT 1
- require "stream/web" produces warning HOT 21
- object key naming should not contain '#' HOT 2
- Module not found: Error: Can't resolve 'stream/web' HOT 20
- text() is fatal on non UTF-8 data, while in browser it works without any issue HOT 1
- How can I implement the below code in older version ? HOT 1
- maybe use `stream.Readable.toWeb` HOT 2
- Behavior of .slice() is incorrect when using blobs backed by a file on the disk
- Possibility to remove web-streams-polyfill dependency? HOT 1
- fileFromSync just part of a file HOT 1
- The RC version should not be released as latest. HOT 1
- Adding a File class maybe?
- Doesn't work either with latest stable and beta version of node-fetch HOT 6
- Revisit DOMException
- Support Node.js v12 HOT 4
- Implementing a mutable append only blob type? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fetch-blob.