-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Admin-ui styling is broken vendure 2.2.o-next.6 #2745
Comments
Delete your admin ui dir and any angular cache dir and rebuild. |
yes i have rebuild the issue also AdminUiPlugin.init({
port: 3002,
route: 'oldAdmin',
adminUiConfig: {
brand: 'wedglam',
hideVendureBranding: false,
hideVersion: false,
},
app: {
path: getDirname(import.meta.url, '../../admin-ui-vendure/dist'),
},
}), the compile scripts import {
compileUiExtensions,
setBranding,
} from '@vendure/ui-devkit/compiler/index.js';
import { getDirname } from './get-dir-name.js';
export const compileAdmin = () => {
return compileUiExtensions({
outputPath: getDirname(import.meta.url, '../vendure-admin-ui'),
extensions: [
setBranding({
// The small logo appears in the top left of the screen
smallLogoPath: getDirname(import.meta.url, '../theme/logo.png'),
// The large logo is used on the login page
largeLogoPath: getDirname(import.meta.url, '../theme/logo.png'),
// Favicon path.
faviconPath: getDirname(import.meta.url, '../theme/favicon.ico'),
}),
{
globalStyles: getDirname(import.meta.url, '../theme/theme.scss'),
},
],
});
}; import { existsSync, rmSync } from 'fs';
import { mergeDirs } from '@armit/file-utility';
import { compileAdmin } from './compile-admin-ui.js';
import { getDirname } from './get-dir-name.js';
const adminUIDir = `vendure-admin-ui`;
const from = getDirname(import.meta.url, '../', adminUIDir, 'dist');
const copyFiles = () => {
const dist = getDirname(import.meta.url, '../../admin-ui-vendure/dist');
if (existsSync(dist)) {
rmSync(dist, { recursive: true });
}
mergeDirs(from, dist, 'overwrite');
};
compileAdmin()
.compile?.()
.then((result) => {
copyFiles();
console.log(result);
process.exit(0);
})
.catch((err) => {
console.log(err);
}); |
where is angular cache dir? |
The Angular compiler with create a Also delete the |
|
oh, it seems that |
Expected behavior
Environment (please complete the following information):
Additional context
no console error, it seems that missed some styles
The text was updated successfully, but these errors were encountered: