Giter Club home page Giter Club logo

save-progress's Introduction

developer

Hi, I'm Murageh ๐Ÿ‘‹

Mobile & Web developer | Computer Engineer

Practising languages: Java | HTML, CSS, JS, JQuery | React, Nextjs | PHP

๐Ÿ“ซ You can reach me via email. ย  Visit my portfolio here ๐Ÿ‘‰ Portfolio website.

save-progress's People

Contributors

murageh avatar

Watchers

 avatar

save-progress's Issues

Can not be used in nextjs

Describe the bug
Unfortunately, the package cannot be used with Next.js. The following error message is displayed:

ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/Users/pascal/Development/filu/frontend/node_modules/@crispice/save-progress/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

To Reproduce

  1. Try to import with import { useSaveProgress } from '@crispice/save-progress';
  2. Use it in component useSaveProgress({ key: 'test' });
  3. Following error is displayed:

image

Expected behavior
Should work also with nextjs

Note: Maybe it is enough to remove the paragraph "type: 'module'" from package.json to make it work.

Desktop (please complete the following information):

  • OS: macOS 13.1
  • Browser: Chrome
  • Version 110.0.5481.100

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.