Comments (5)
i removed the .next folder and let it rebuild.
No changes. still same error.
from vcard4.
Hello Tim,
I would like to help, but you haven't provided enough information.
Could you post the entire stack trace of the error you're getting?
from vcard4.
Full stack from safari on macos
Unhandled Runtime Error
SyntaxError: Unexpected private name #validate. Cannot parse class method with private name.
Call Stack
eval
[native code]
./node_modules/vcard4/src/esm/values.js
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/pages/v1/%5Bsource%5D/%5Btapid%5D.js (4525:5)
<unknown>
/_next/static/chunks/webpack.js (685:35)
__webpack_require__
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/webpack.js (37:37)
eval
[native code]
./node_modules/vcard4/index.js
/_next/static/chunks/pages/v1/%5Bsource%5D/%5Btapid%5D.js (4459:5)
<unknown>
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/webpack.js (685:35)
__webpack_require__
/_next/static/chunks/webpack.js (37:37)
eval
[native code]
./components/LandingPage/index.tsx
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/pages/v1/%5Bsource%5D/%5Btapid%5D.js (3219:5)
<unknown>
/_next/static/chunks/webpack.js (685:35)
__webpack_require__
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/webpack.js (37:37)
eval
[native code]
./pages/v1/[source]/[tapid].tsx
/_next/static/chunks/pages/v1/%5Bsource%5D/%5Btapid%5D.js (3593:5)
<unknown>
file:///Users/tim/src/active/do.dev/app.contacts.dev/.next/static/chunks/webpack.js (685:35)
__webpack_require__
/_next/static/chunks/webpack.js (37:37)
promiseReactionJob
[native code]
from vcard4.
https://caniuse.com/?search=private%20class
🤦 Apparently, Safari supports private class fields but not private class methods. Gonna put a warning on the README...
I recommend using Babel
from vcard4.
Ok i have a fix....
using this npm next-transpile-modules. it can transpile this code to work.
Also need to add to next.config.js for nextjs. here is mine.
const withTM = require('next-transpile-modules')(['vcard4']); // pass the modules you would like to see transpiled
const withPlugins = require('next-compose-plugins');
const nextConfig = {
images: {
domains: ['firebasestorage.googleapis.com', 'res.cloudinary.com'],
},
};
module.exports = withPlugins([withTM], nextConfig);
Appears to work after all this. Onwards.
from vcard4.
Related Issues (16)
- Support parsing multiple vCards in a single file HOT 3
- Accept "\r\n\t" for line continuation
- "npm run test" fails due to private class fields HOT 3
- Accept bare newlines as well HOT 1
- Does not support property groups HOT 6
- No support for escaped backslashes in parser HOT 3
- Typings are wrong HOT 1
- ExtendedProperty in d.ts has 2 parameters only, missed prop: string HOT 1
- Issue attaching base64 images HOT 20
- Gender identity HOT 1
- Constructor not accept Groups
- It would be helpful to have charset support included, even if it's added to AnyParameter. HOT 4
- [Bug] A hyphen is used after 'X-' in an ExtendedProperty, an 'Invalid property for ExtendedProperty' error occurs
- round trip test case HOT 2
- Backwards compatible with 3.0 cards? HOT 1
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 vcard4.