Giter Club home page Giter Club logo

Comments (5)

timmeade avatar timmeade commented on July 26, 2024

i removed the .next folder and let it rebuild.

No changes. still same error.

from vcard4.

kelseykm avatar kelseykm commented on July 26, 2024

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.

timmeade avatar timmeade commented on July 26, 2024

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.

kelseykm avatar kelseykm commented on July 26, 2024

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.

timmeade avatar timmeade commented on July 26, 2024

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)

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.