Default access-control-casbin react sample boiler template gives error

😩
No description
C
complex-teal444d ago
@vinith7662 Hi, i will debug and return you as soon as possible @vinith7662 hi again, thanks for the issue ! can you add this to config-overrides.js ?
config.module.rules.push({
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
})
config.module.rules.push({
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
})
full config-ovverrides.js
const webpack = require('webpack')

module.exports = function override(config) {
config.resolve.fallback = Object.assign(config.resolve.fallback || {}, {
...config.resolve.fallback,
fs: false,
buffer: require.resolve('buffer'),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
assert: require.resolve('assert'),
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
os: require.resolve('os-browserify'),
url: require.resolve('url'),
})
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
])

config.module.rules.push({
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
})
return config
}
const webpack = require('webpack')

module.exports = function override(config) {
config.resolve.fallback = Object.assign(config.resolve.fallback || {}, {
...config.resolve.fallback,
fs: false,
buffer: require.resolve('buffer'),
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
assert: require.resolve('assert'),
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
os: require.resolve('os-browserify'),
url: require.resolve('url'),
})
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
])

config.module.rules.push({
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
})
return config
}
we will fix our repo. thanks again !
G
genetic-orange444d ago
yeah now its working fine thank you
More Posts
Possible to use day.js RelativeTime with Date FieldHi is it possible to use Time from now (https://day.js.org/docs/en/display/from-now) using day.js's 2 modals inside a same dropdownHi everyone, i create an menu dropdown, and inside this dropdown i wanna open the modal with create How to hide breadcrumb icons globally?I want to hide the breadcrumbs icons globally on all pages instead of hiding on each and individual How to change the text on `SaveButton`?I want to change the text of save button from **Save** to something else in `Edit` Component. How cahow to use form.setFields in checkboxform.setFieldsValue({ add: true }); <Form.Item name="add"> <Checkbox>Add</CheckboIs there a better way to do nested resources?I am trying to create routes for a couple of resources that only have a meaning if they are added tohttps refine dev docs comparison kindahttps://refine.dev/docs/comparison/ - kinda outdated - AdminBro is now AdminJS - resources from img.Use sorter in Table.Column with compare function, prevent queryI have a sort function that I am using because my dataIndex is an array `dataIndex={["pp_spec", "pp_Add option to disable CodeViewerComponent for MuiInferencerIs it possible to disabled the show code and give feedback section?Dynamically render formsIs there an easy way to dynamically render forms in refine?? through json fileGetting error when creating a new hook inside refine-coreI have created a new hook inside refine-core/hooks. now I tried to use it inside core-select-exampleAbout MultiPart uploadi am integrating a admin pannel using Ant Design only so can i get MultiPart Upload in Ant Design. C