-
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Information
Ubuntu 20.04.6 LTS x86_64 ,github codespace , node v16.20.2
Details
Description
While trying to build a project that includes the Ubuntu font, I encountered a problem. The builder is unable to resolve the file path ./files/ubuntu-latin-300.woff2. This could be due to the file not existing in the specified location or the path being incorrect.
Steps to reproduce
my steps:
- Open a codespace.
- Run
npm ci(ornpm install, i have also tried it) to install the dependencies. - Run
npm run devto start the development server. - open
localhost:3000
Upon doing this, i see the error message.
ERROR Failed to compile with 1 errors friendly-errors 5:18:56 AM
ERROR in ./assets/scss/style.scss friendly-errors 5:18:56 AM
Module build failed (from ./node_modules/css-loader/dist/cjs.js): friendly-errors 5:18:56 AM
Error: Can't resolve './files/ubuntu-latin-300.woff2' in '/workspaces/cdnjs-website/assets/scss'
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:209:21
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/RootPlugin.js:37:38
at _next43 (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:31:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/workspaces/cdnjs-website/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js:27:15
at /workspaces/cdnjs-website/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
at processTicksAndRejections (node:internal/process/task_queues:78:11)
friendly-errors 5:18:56 AM
@ ./assets/scss/style.scss 4:14-224 15:3-20:5 16:22-232
@ ./.nuxt/App.js
@ ./.nuxt/index.js
@ ./.nuxt/client.js
@ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
if I delete /assets/scss/style.scss line 4 , bugs will not appear
@import "../../node_modules/typeface-ubuntu/index.css";
Expected behavior
Screenshots
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels