Tag Archives: errors

[Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0

Today, when writing the Vue page, according to the tutorial, I want to install sass-loader and node-sass, but when running the project after installation, the following errors are reported:

Node Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0 || ^6.0.0

The solution is as follows

Stop using node-sass and replace it with sass.

If you want to use SCSS or sass in your application, you need to do this:

First uninstall the previously installed node-sass

yarn remove node-sass

If NPM is used, then

npm uninstall node-sass

Then install sass instead of node-sass

yarn add -D sass

perhaps

npm i -D sass

Then your SCSS/sass file will be compiled correctly.

Error: expected class name before ‘{‘ token

The error of C + + compiler is as follows:

error: expected class-name before ‘{’ token

When deriving a class, you need to confirm whether it contains the header file of the base class.

If the header file of the base class is included, an error is still reported. As mentioned above, check the header file contained in the base class header file.
For example, all the information about an error is as follows:

aarch64-himix100-linux-g++ -c ./src/base.cpp ./src/host.cpp ./src/main_test.cpp ./src/mcu.cpp ./src/uart1.cpp 
In file included from ./src/../include/main_test.h:6:0,
                 from ./src/../include/base.h:6,
                 from ./src/base.cpp:1:
./src/../include/uart1.h:10:1: error: expected class-name before ‘{’ token
 {
 ^
make: *** [main_test.o] Error 1

There are base classes in the base. H file. Uart1. H is the class to be derived. But look at all the above error information, it appears from the sixth line of base. H. Find line 6, which is the header file of the main function (test program).
Put the header file in line 6 base.cpp It’s OK.

In fact, the above situation should not appear in base. H and base.cpp The header file of the test file should not appear in.

Put the header files (such as # include & lt; pthread. H & gt;) in the corresponding header files (such as base. H).

When testing, you only need to include the base. H file to test the functions in the base.

Error: Make: pdflakex: command not found

When using the Doxygen tool, make reports the following errors:

adams@ubuntu:~/latex$ make
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
pdflatex refman
make: pdflatex: Command not found
make: *** [Makefile:8: refman.pdf] Error 127
adams@ubuntu:~/latex$ 

solution:

sudo apt install doxygen-latex

details:

The following additional packages will be installed:
  cm-super-minimal dvisvgm fonts-lato fonts-lmodern fonts-texgyre javascript-common libapache-pom-java libclass-data-inheritable-perl libclass-method-modifiers-perl libclass-xsaccessor-perl
  libcommons-logging-java libcommons-parent-java libemail-date-format-perl libexception-class-perl libfile-homedir-perl libfile-which-perl libfontbox-java libipc-shareable-perl libjs-jquery
  liblog-dispatch-perl liblog-log4perl-perl libmail-sendmail-perl libmime-charset-perl libmime-lite-perl libmime-types-perl libparams-validationcompiler-perl libpdfbox-java libptexenc1
  libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl libruby2.7 libsombok3 libspecio-perl libsub-quote-perl libsys-hostname-long-perl libtcl8.6 libteckit0 libtexlua53
  libtexluajit2 libtk8.6 libunicode-linebreak-perl libxstring-perl libzzip-0-13 lmodern preview-latex-style ps2eps rake ruby ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit
  ruby-xmlrpc ruby2.7 rubygems-integration t1utils tcl tcl8.6 tex-common tex-gyre texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-latex-base
  texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic tipa tk tk8.6
Suggested packages:
  apache2 | lighttpd | httpd libavalon-framework-java libcommons-logging-java-doc libexcalibur-logkit-java liblog4j1.2-java libdbd-csv-perl liblog-dispatch-filerotate-perl librrds-perl
  libxml-dom-perl libencode-hanextra-perl libpod2-base-perl default-mta | mail-transport-agent libmojolicious-perl libtest-fatal-perl ri ruby-dev bundler tcl-tclreadline debhelper perl-tk xzdec
  chktex dvidvi dvipng fragmaster lacheck latexdiff latexmk purifyeps xindy lcdf-typetools psutils texlive-fonts-recommended-doc texlive-latex-base-doc icc-profiles libspreadsheet-parseexcel-perl
  texlive-latex-extra-doc texlive-latex-recommended-doc texlive-luatex texlive-pstricks dot2tex prerex ruby-tcltk | libtcltk-ruby texlive-pictures-doc vprerex default-jre-headless
The following NEW packages will be installed:
  cm-super-minimal doxygen-latex dvisvgm fonts-lato fonts-lmodern fonts-texgyre javascript-common libapache-pom-java libclass-data-inheritable-perl libclass-method-modifiers-perl
  libclass-xsaccessor-perl libcommons-logging-java libcommons-parent-java libemail-date-format-perl libexception-class-perl libfile-homedir-perl libfile-which-perl libfontbox-java
  libipc-shareable-perl libjs-jquery liblog-dispatch-perl liblog-log4perl-perl libmail-sendmail-perl libmime-charset-perl libmime-lite-perl libmime-types-perl libparams-validationcompiler-perl
  libpdfbox-java libptexenc1 libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl libruby2.7 libsombok3 libspecio-perl libsub-quote-perl libsys-hostname-long-perl libtcl8.6
  libteckit0 libtexlua53 libtexluajit2 libtk8.6 libunicode-linebreak-perl libxstring-perl libzzip-0-13 lmodern preview-latex-style ps2eps rake ruby ruby-minitest ruby-net-telnet ruby-power-assert
  ruby-test-unit ruby-xmlrpc ruby2.7 rubygems-integration t1utils tcl tcl8.6 tex-common tex-gyre texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended
  texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-plain-generic tipa tk tk8.6
0 upgraded, 76 newly installed, 0 to remove and 0 not upgraded.
Need to get 194 MB of archives.
After this operation, 530 MB of additional disk space will be used.
Do you want to continue? [Y/n] y