Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue importing jquery-ui from node_modules/ folder: @parcel/core: Failed to resolve 'jquery-ui/dist/themes/start/jquery-ui.css' from './assets/css/protection.scss' #9878

Open
Blackbam opened this issue Jul 29, 2024 · 0 comments

Comments

@Blackbam
Copy link

🐛 bug report

Can not build because of the following:

`yarn build
yarn run v1.22.19
$ parcel build assets/css/.scss assets/js/.js --no-content-hash --dist-dir public/build
🚨 Build failed.

@parcel/core: Failed to resolve 'jquery-ui/dist/themes/start/jquery-ui.css' from
'./assets/css/protection.scss'

[PATH]/src/assets/css/protection.scss:15:9
14 |

15 | @import "jquery-ui/dist/themes/start/jquery-ui.css";
| ^
16 | @import "scss/lib/jquery-ui-custom";
17 |

`

jquery-ui is installed in the node_modules folder and the CSS file exists. Furthermore it seemed to work in an old version of the branch with older parcel versions.

Tried:

  • ~jquery-ui/dist/themes/start/jquery-ui.css
  • ~@jquery-ui/dist/themes/start/jquery-ui.css
  • @jquery-ui/dist/themes/start/jquery-ui.css
  • node_modules/jquery-ui/dist/themes/start/jquery-ui.css

The error is always the same. Maybe it is SASS related?

Dependencies:

    "devDependencies": {
        "@parcel/transformer-sass": "^2.12.0",
        "jquery": "^3.7.1",
        "jquery-ui": "^1.13.2",
        "marked": "^7.0.5",
        "parcel": "^2.12.0",
        "parcel-namer-hashless": "^1.0.6",
        "sass": "^1.77.8"
    },
    
     "dependencies": {
        "datatables.net": "^1.11.3",
        "datatables.net-responsive": "^2.2.9",
        "datatables.net-select": "^1.3.4",
        "handlebars": "^4.7.8",
        "handlebars-helpers": "^0.10.0",
        "helper-functions": "^2.0.0",
        "js": "^0.1.0",
        "yarn": "^1.22.22"
    },

Any idea what might be the issue here? Let me know if you need more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant