question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run a newly created project.

See original GitHub issue

I followed the all the steps mentioned in the Full Installation Guide. There are some issues, I am facing while executing the project.

  1. The Generate SCSS is giving an error.
  2. After commenting the content of styles.scss file , I get another error.

Logs:

./src/styles.scss - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleError: Module Error (from ./node_modules/postcss-loader/dist/cjs.js):
(Emitted value instead of an instance of Error) CssSyntaxError: /Users/Nitin/LocalDisk C/Work/Angular/Fundamental/src/styles.scss:4:4: Can't resolve '@sap-theming/theming-base-content/content/Base/baseLib/sap_base_fiori/fonts/72-Regular-full.woff' in '/Users/Nitin/LocalDisk C/Work/Angular/Fundamental/src'

  2 | @font-face {
  3 |     font-family: '72';
> 4 |     src: url('~@sap-theming/theming-base-content/content/Base/baseLib/sap_base_fiori/fonts/72-Regular-full.woff') format('woff');
    |    ^
  5 |     font-weight: normal;
  6 |     font-style: normal;

    at Object.emitError (/Users/Nitin/LocalDisk C/Work/Angular/Fundamental/node_modules/webpack/lib/NormalModule.js:550:6)
    at Declaration (/Users/Nitin/LocalDisk C/Work/Angular/Fundamental/node_modules/@angular-devkit/build-angular/src/webpack/plugins/postcss-cli-resources.js:144:28)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async LazyResult.runAsync (/Users/Nitin/LocalDisk C/Work/Angular/Fundamental/node_modules/postcss/lib/lazy-result.js:411:15)
    at async Object.loader (/Users/Nitin/LocalDisk C/Work/Angular/Fundamental/node_modules/postcss-loader/dist/index.js:97:14)
Error: node_modules/@fundamental-ngx/core/node_modules/@angular/platform-browser/platform-browser.d.ts:703:5 - error TS2416: Property 'supportsDOMEvents' in type 'ɵangular_packages_platform_browser_platform_browser_o' is not assignable to the same property in base type 'ɵDomAdapter'.
  Type '() => boolean' is not assignable to type 'boolean'.

703     supportsDOMEvents(): boolean;
        ~~~~~~~~~~~~~~~~~


Error: node_modules/@fundamental-ngx/core/node_modules/@angular/platform-browser/platform-browser.d.ts:703:5 - error TS2425: Class 'ɵDomAdapter' defines instance member property 'supportsDOMEvents', but extended class 'ɵangular_packages_platform_browser_platform_browser_o' defines it as instance member function.

703     supportsDOMEvents(): boolean;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Smiranincommented, Aug 3, 2021

@GeneralNitin @kavya-b this issue is already fixed about two weeks ago. You can use latest release candidate e.g. v 0.31.0-rc.165 or wait next release.
I tested it with v 0.31.0-rc.165 and it works well.

0reactions
kavya-bcommented, Jul 29, 2021

@droshev any ideas on this issue? I can reproduce it as follows:

  • in a new ang12 project, run ng add @fundamental-ngx/core
  • go to app.module.ts and add any core module, eg, CheckboxModule
  • run ng build --> error

image

I tried changing the typescript version to a lower one(same as ngx), but ang12 does not support that version. The lowest allowed version (4.2.3) also throws same error on building. I also verified on ang10 and ang11 and this issue is not reproducible there, so this may be ang12 specific.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run a new created project from visual studio Code
I'm new to react native, and I always work with visual studio 2019. ... Unable to run a new created project from visual...
Read more >
"Error while trying to run project: Unable to start program". Can ...
First restart Visual Studio · Click the build icon · Select the rebuild option · Run the Program or Debug the Program.
Read more >
Unity Hub won't create new project
Uninstall hub. Go to program files and get rid of any file left from Hub or Editor! Clear the trash. Download Unity hub....
Read more >
I can't run my project - Visual Studio Feedback
I've made a test program to see if VS works fine. The problem is whenever I try to run it it says it...
Read more >
Creating and managing projects - Documentation
You can create a new project using the Google Cloud console, the Google Cloud CLI, ... If the process to shut down a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found