Open kunaldhyani026 opened 3 days ago
Hey @kunaldhyani026 ,
I tried building a minimal react app that imports this embedded SDK with the package.json
you provided. I used a vanilla webpack config with the Terser plugin for minimization, and was able to build:
What does your
webpack.config.js
look like? If possible, could you put a minimal repro in a public repro, and we'll check it out? Thanks!
Hi @taylorreece
Surely will put a minimal repro reproducing the issue. Meanwhile, please find below how our webpack.config.js
looks like -
let webpack = require("webpack");
const { merge } = require("webpack-merge");
const singleSpaDefaults = require("webpack-config-single-spa-react");
module.exports = (webpackConfigEnv, argv) => {
const defaultConfig = singleSpaDefaults({
orgName: "practice",
projectName: "admin-console-ui",
webpackConfigEnv,
argv,
});
return merge(defaultConfig, {
// modify the webpack config however you'd like to by adding to this object
module: {
rules: [
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
use: "url-loader?name=[name].[ext]",
},
],
},
externals: {
"practice-listing-ui": "@practice/listing-ui",
"practice-analytics-ui": "@practice/analytics-ui",
"practice-customer-ui-utils": "@practice/customer-ui-utils"
}
});
};
Thanks
While performing the build -
npm run build
, We are encountered with following error -There seems to be some issue with
@prismatic-io/embedded/dist/index.js
where t variable is redeclared.This how the package.json looks like :
Please check and confirm.
Thanks