Comments (4)
The changes in micro shouldn't affect @vangware/window-open-promise
at all, that's why the version was flagged as patch (it didn't changed the API, nor added anything new, it's just a dependency upgrade).
Micro is compiled with esm and cjs targets. ESM is only modern JavaScript, and CJS does down-compilation of stuff like nullish coalescence (as you can see in the file that's throwing an error for you, in it's cjs version here).
@vangware/window-open-promise
is also compiled in esm and cjs, and both import from @vangware/micro
, so the bundler/resolver needs to take care of bundling/resolving the correct path.
Initially I suggest to take a look at your webpack configuration to make sure it imports from cjs instead of esm. If that doesn't work, you should add support for nullish coalescence and optional chaining in your webpack build process (either updating TypeScript to latest if you use TypeScript, or installing the corresponding Babel plugins). Finally check your Node version (14 and above support this syntax natively).
Sorry, but I can't do anything else on my end.
Thanks for reporting!
from window-open-promise.
Thx for the explanation and hints on how to fix it on my side. I will check my setup later and provide feedback; maybe it is just my node version using node 12 LTS. Also, I have to check if this behavior is just happening in dev mode and maybe not on production.
from window-open-promise.
I'm closing this because it seems to be a problem with Webpack. From what I can gather there are some temporary solutions adding rules, or switching entirely to Rollup.
Related bug in Webpack so you can track it: webpack/webpack#7973
from window-open-promise.
I just confirm that the latest version 2.6.0 is working again, many thx!
from window-open-promise.
Related Issues (3)
- Error on Google Chrome HOT 2
- Missing module declaration HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from window-open-promise.