-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Issue loading a font from primeng omega theme roboto-v15-latin #284
Comments
hmm... can you upload a fork with this? |
Hi Thanks for the response. All dependent files need for exports.MY_COPY_FOLDERS = [ { from: 'node_modules/primeng/resources/primeng.min.css' }, And then I did an $ npm run build:dev ./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js] ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ ERROR in ./ **I tried to add a module resolver on webpack.config.ts perhaps ** const clientConfig = function webpackConfig(): WebpackConfig { config.module = { But this won't run. |
Hello, I had forked it and pushed it under egonzal93-001 Basically I can't do a build and kept getting the errors from above this thread. Thanks, |
Hi, I figured it out and fixed it. I got it to compile and run. I'll post what I did later. Thanks, |
Hello, I was struggling with this problem too. But I found the solution in a webpack related problem. jkrnak's post solved my issue. Hope it helps! |
Hi,
I was using the no-universal-support branch as my starter template:
I was using a primeng theme and I have this on my my scss file
@import '~primeng/resources/themes/omega/theme';
Webpack cannot resolve a module I get the following error:
ERROR in ./
/css-loader!.//sass-loader/lib/loader.js!./src/app/containers/dashboard/style.scssModule not found: Error: Can't resolve './fonts/roboto-v15-latin-regular.ttf'
Inside of '../../node_modules/primeng/resources/themes/omega/theme.css'
its referencing the font:
/* roboto-regular - latin /
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url('fonts/roboto-v15-latin-regular.eot'); / IE9 Compat Modes /
src: local('Roboto'), local('Roboto-Regular'),
url('fonts/roboto-v15-latin-regular.eot?#iefix') format('embedded-opentype'), / IE6-IE8 /
url('fonts/roboto-v15-latin-regular.woff2') format('woff2'), / Super Modern Browsers /
url('fonts/roboto-v15-latin-regular.woff') format('woff'), / Modern Browsers /
url('fonts/roboto-v15-latin-regular.ttf') format('truetype'), / Safari, Android, iOS /
url('fonts/roboto-v15-latin-regular.svg#Roboto') format('svg'); / Legacy iOS */
}
My app.components.ts loads the primeng library:
@component({
selector: 'sdm-app',
styleUrls: [
'./material-theme.scss',
'../../node_modules/primeng/resources/primeng.min.css',
'../../node_modules/primeng/resources/themes/omega/theme.css',
'../../node_modules/font-awesome/css/font-awesome.min.css',
'./app.component.scss'],
templateUrl: './app.component.html',
encapsulation: ViewEncapsulation.None
})
Is there something that needs to be added into the webpack.config.ts ?
Thanks,
Jason
The text was updated successfully, but these errors were encountered: