-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Webpack: Cannot statically analyse 'require(…, …)' #317
Comments
Line 29 in I can reproduce this issue using the following steps:
import Asciidoctor from '@asciidoctor/core'
import kroki from 'asciidoctor-kroki'
Having said that, I have absolutely no idea how to solve this issue since the error message does not help. You should probably ask the Webpack team: |
That's a shame, will raise this with the Web-pack Team, can close the issue if you wish to do so. |
Thanks, I will keep this issue open until we found the root cause. @lord-pendragon Feel free to link this issue if there's a corresponding GitHub issue upstream. |
Description: Using Asciidoctor's Kroki extension with Webpackv4 results in the following error
How to Reproduce:
Make a React-App
Add the following dependencies to packages.json:
"asciidoctor": "^2.2.5",
"asciidoctor-kroki": "^0.15.4",
"highlight.js": "11.4.0",
"sanitize-html": "2.6.1",
"webpack": "^4.0.0"
Add AsciiDoctor.jsx to your project
Import AsciiDoctor into App.jsx and use it as
npm start: You will see the issue
Repo: https://github.com/lord-pendragon/ascii-krokii-webpack-issue
The text was updated successfully, but these errors were encountered: