عند تضمين ال
<script type="text/html" src="{require('index.js')}"></script> داخل index.html
يظهر هذا الخطأ
ERROR in ./src/css/style.css
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
CssSyntaxError
(2:7) C:\Users\Dell\Desktop\school\src\css\style.css Unknown word
1 |
> 2 | import API from "!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
| ^
3 | import domAPI from "!../../node_modules/style-loader/dist/runtime/styleDomAPI.js";
4 | import insertFn from "!../../node_modules/style-loader/dist/runtime/insertBySelector.js";
@ ./src/index.js 1:0-25
webpack 5.64.4 compiled with 1 error in 647 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! school@1.0.0 build: `webpack`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the school@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dell\AppData\Roaming\npm-cache\_logs\2021-11-29T11_35_32_517Z-debug.log