Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The requested module 'express-sequelize-crud' does not provide an export named 'sequelizeCrud' #67

Closed
rajkumarpb opened this issue Oct 10, 2021 · 1 comment

Comments

@rajkumarpb
Copy link

rajkumarpb commented Oct 10, 2021

When I try to run the project with just bare minimum code, I am getting the below error. (Node - 13.1400, npm - 6.14.4)

F:\Freelance\seq-crud-1>node --experimental-modules index.js
file:///F:/Freelance/seq-crud-1/index.js:3
import crud, { sequelizeCrud } from 'express-sequelize-crud'
               ^^^^^^^^^^^^^
SyntaxError: The requested module 'express-sequelize-crud' does not provide an export named 'sequelizeCrud'

Code :

import express from 'express'
import crud, { sequelizeCrud } from 'express-sequelize-crud'
const Role = require('./models')

const app = new express()
app.use(crud('/admin/users', sequelizeCrud(Role)))

@rajkumarpb rajkumarpb changed the title The requested module 'express-sequelize-crud' does not provide an e xport named 'sequelizeCrud' The requested module 'express-sequelize-crud' does not provide an export named 'sequelizeCrud' Oct 11, 2021
@nicgirault
Copy link
Owner

I can't reproduce. Can you publish a sandbox with the issue? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants