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

[BUG] Can't resolve 'styles/annotations.css' when importing BokehJS #10172

Closed
appleparan opened this issue Jun 15, 2020 · 1 comment · Fixed by #10188
Closed

[BUG] Can't resolve 'styles/annotations.css' when importing BokehJS #10172

appleparan opened this issue Jun 15, 2020 · 1 comment · Fixed by #10188

Comments

@appleparan
Copy link

appleparan commented Jun 15, 2020

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

  • bokeh : 2.1.0
  • node : 14.4.0
  • react : 16.13.1
  • typescript : 3.9.5
  • OS : Ubuntu 18.04 in WSL2

Description of expected behavior and the observed behavior

An error occurred when just importing bokehJS in webpack based JSX code (React). It might be revisit of #8197 or webpack confused about .css.js (style/annotation.css.js )

Check this:

import annotations_css from "styles/annotations.css"

Complete, minimal, self-contained example code that reproduces the issue

Simple Repo to reproduce

What I did;

$ npx create-react-app myapp
$ cd myapp
$ npm i @bokeh/bokehjs

then add import * as Bokeh from "@bokeh/bokehjs"; in App.js.

Stack traceback and/or browser JavaScript console output

./node_modules/@bokeh/bokehjs/build/js/lib/models/annotations/annotation.js
Module not found: Can't resolve 'styles/annotations.css' in 'mydirectories/node_modules/@bokeh/bokehjs/build/js/lib/models/annotations'
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants