-
-
Notifications
You must be signed in to change notification settings - Fork 373
Include CSS from lerna module in preact #1487
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
Comments
I don't believe your typings will apply to other modules. I'll need some time to set up reproduction but try:
|
I've published a sample repository that mimics the setup and reproduces the issue: Sample Repo The divs from the common component are added but the css is missing. |
Whoops, sorry, didn't realize |
@bhr Sorry, got busy right after work and could only look now. Your issue is that your declaration file ( After making that small edit the project could then build. TS just didn't know about the existence of that file is all. |
Closing as this should be fixed. Let me know if you have any further issues. |
Uh oh!
There was an error while loading. Please reload this page.
Do you want to request a feature or report a bug?
Bug, likely a user configuration error thought.
What is the current behaviour?
Error is thrown during compilation when running
preact watch
If the current behaviour is a bug, please provide the steps to reproduce.
The typescript app has been set up using the preact-cli
create
command. The app uses some shared code that is referenced through lerna in node_modules. I've already been using the shared code in another preact project that is using a custom configuration (webpack).Folder structure:
preact-webpack-app uses the
Select
component. It runs and builds without issues.Gists:
webpack config.js
for preact-webpack-app,preact.config.js
for preact-cli-app,typings.d.ts
,Select.tsx
andselect.css
The
css-loader
options for preact-cli-app are:I'm including the common module in the css rules
What is the expected behaviour?
Typescript to build components in the common module without errors.
If this is a feature request, what is motivation or use case for changing the behaviour?
N/A
Please mention other relevant information.
I've taken a look at similar issues in this repository (#1368, #1475, #1218, #522) and on stackoverflow. Unfortunately, none have helped thus far.
Please paste the results of
preact info
here.The text was updated successfully, but these errors were encountered: