Open swiftcoder opened 1 month ago
@swiftcoder Does it happen to you from the beginning when you initialize a project or has it happened to you afterwards? If the latter, could you share some code?
And what platform is your computer?
uname -mprs
"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"
in the PowerShell consoleMaybe can be related with this Bun issue: https://github.com/oven-sh/bun/issues/12176#issuecomment-2192888603
I figured out the issue eventually, by commenting out code till I isolated it. It looks like an incompatibility with trying to import from a library that does an export *
The easiest repro I have to hand is with THREE.js. If you add Three to your project and then try and import * as THREE from 'three';
or import { GLTFLoader } from "three/examples/jsm/Addons.js";
, then brisa dev
will choke.
Switching to the old require(...)
syntax unbreaks it, as does importing inner modules (rather than the export *
re-exports in the top-level files)
$ uname -mprs
Darwin 23.6.0 arm64 arm
I'm not entirely sure how I'm triggering this, but it seems to occur after adding/removing a web component. Once I'm in this situation, build and start work fine, but the
dev
command fails every page load with some variation on the following:Any pointers as to what I might be doing wrong? Is there a web-component cache I need to blow away?