You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)))
The text was updated successfully, but these errors were encountered:
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
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)
Code :
The text was updated successfully, but these errors were encountered: