https://github.com/jakzo/shadow-dynamic-import-issue
https://github.com/jakzo/shadow-dynamic-import-issue
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jakzo/shadow-dynamic-import-issue
- Owner: jakzo
- Created: 2019-04-22T22:36:38.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T22:37:11.000Z (about 6 years ago)
- Last Synced: 2025-01-13T20:14:34.092Z (5 months ago)
- Language: Clojure
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shadow-cljs dynamic import issue
```sh
# Compile without dynamic import (succeeds)
$ shadow-cljs compile normalshadow-cljs - config: /.../shadow-dynamic-import-issue/shadow-cljs.edn cli version: 2.7.17 node: v11.6.0
shadow-cljs - starting ...
[:normal] Compiling ...
[:normal] Build completed. (27 files, 0 compiled, 0 warnings, 1.40s)# Compile with dynamic import (fails)
$ shadow-cljs compile dynamicshadow-cljs - config: /.../shadow-dynamic-import-issue/shadow-cljs.edn cli version: 2.7.17 node: v11.6.0
shadow-cljs - starting ...
[:dynamic] Compiling ...
errors in file: /.../shadow-dynamic-import-issue/node_modules/dynamic-import/index.js
{:js-str-offsets [], :js-esm false, :js-imports [], :js-invalid-requires [], :goog-provides [], :js-language "es3", :goog-module nil, :js-warnings [], :resource-name "node_modules/dynamic-import/index.js", :js-requires [], :js-errors [{:line 2, :column 2, :message "'}' expected"}], :goog-requires [], :tag :shadow.build.npm/errors, :uses-global-buffer false}
ExceptionInfo: errors in file: /.../shadow-dynamic-import-issue/node_modules/dynamic-import/index.js
clojure.core/ex-info (core.clj:4739)
clojure.core/ex-info (core.clj:4739)
shadow.build.npm/get-file-info* (npm.clj:530)
...
```