Skip to content

Error using tinybase in electron.js app #48

@uwemneku

Description

@uwemneku

Describe the bug

I'm currently trying to use tinybase in an electon.js personal project but keep on getting an import error saying
Error [ERR_REQUIRE_ESM]: require() of ES Module ...\tinybase.js from .....\dataBase.js not supported. Instead change the require of tinybase.js in ...\dataBase.js to a dynamic import() which is available in all CommonJS modules.

dataBase.js is the file where I'm trying to use tinybase

Your Example Website or App

https://github.com/uwemneku/electron-quick-start/blob/master/main.js

Steps to Reproduce the Bug or Issue

  1. Clone this repo
  2. Start the app npm start

Expected behavior

As a user, I expect the app to start without any issues

Screenshots or Videos

image
image

Platform

  • OS: [Windows]
  • Browser: [Chronium]

Additional context

No response

Metadata

Metadata

Assignees

Labels

please verifyCould you see if this is better now?

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions