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

[bootstrap]: Compilation errors when adding bootstrap CSS import #680

Open
roldengarm opened this issue Mar 13, 2024 · 0 comments
Open

[bootstrap]: Compilation errors when adding bootstrap CSS import #680

roldengarm opened this issue Mar 13, 2024 · 0 comments

Comments

@roldengarm
Copy link

Details

Recipe Page: bootstrap
Recipe Template: bootstrap
Browser:

What is wrong

When I add
import 'bootstrap/dist/css/bootstrap.min.css';
to preview.ts, I get below error:

preview compiled with 1 error
ERROR in ./node_modules/bootstrap/dist/css/bootstrap.min.css 1:0
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> @charset "UTF-8";/*!
|  * Bootstrap  v5.3.3 (https://getbootstrap.com/)
|  * Copyright 2011-2024 The Bootstrap Authors

I've generated the Storybook config using @nx/angular:storybook-configuration and it does not have a custom webpack config.

Screenshots

image
image
image

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