You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
According to the User Guide, you can import CSS files from node_modules like this:
import 'bootstrap/dist/css/bootstrap.css';
But I can't make that work, and I'm assuming the docs for TypeScript requires a bit more setup sotsc can compile properly. Right now I'm getting this error:
Module not found: Can't resolve 'bulma/bulma.css' in '/Users/.../src'
What is the correct way of making TypeScript and Webpack play along nicely in this case without ejecting?
The text was updated successfully, but these errors were encountered:
require isn't working for me. What's the 'nice' solution here? I could use webpack although that seems like a lot of work, or manually copying the css over and referencing (but then when I update bootstrap I need to manually copy them back over)
sorry, my bad, the instructions I was following had a import 'bootstrap/dist/css/bootstrap-theme.css'; and on checking the latest bootstrap I'm using that doesn't exist any more. Removing that line and leaving import 'bootstrap/dist/css/bootstrap.css'; successfully imports that. :)
According to the User Guide, you can import CSS files from node_modules like this:
import 'bootstrap/dist/css/bootstrap.css';
But I can't make that work, and I'm assuming the docs for TypeScript requires a bit more setup so
tsc
can compile properly. Right now I'm getting this error:Module not found: Can't resolve 'bulma/bulma.css' in '/Users/.../src'
What is the correct way of making TypeScript and Webpack play along nicely in this case without ejecting?
The text was updated successfully, but these errors were encountered: