Comments (8)
That platform is well-supported, as a matter of fact I am using this platform right now. The error looks weird, however. Maybe your optional dependencies were not installed correctly. Try to delete your lock file and node_modules and try again. It could also be a problem with Nuxt.
The error looks like it installed the Intel binary instead of the Mac binary. If you recently migrated from an Intel Mac, again please delete node_modules and try again.
from rollup.
I encountered a similar problem
from rollup.
I guess you are running Rosetta for npm and not using Rosetta for node.
FWIW esbuild has a specific error message for that.
https://github.com/evanw/esbuild/blob/109449e5b80886f7bc7fc7e0cee745a0221eef8d/lib/npm/node-platform.ts#L168-L192
from rollup.
To completely get rid of platform-dependencies for running rollup, install @rollup/wasm-node
instead of @rollup/rollup-platform-X
. This is also related to an npm bug with optionalDepedencies.
from rollup.
I'm working on a project that uses Rollup where different developers have different operating systems. I personally work on Linux, but other contributors work on OSX and Windows. In order for them to get the build to work, they need to install their OS-specific packages such as https://www.npmjs.com/package/@rollup/rollup-darwin-arm64
, but if that gets added to package.json
it breaks npm install
for me on Linux.
What is the best practice to support a project that has Rollup as a dependency, and make it work without this friction for developers that have different operating systems?
I was hoping this information would be listed on this page, but unfortunately it is not:
https://www.npmjs.com/package/@rollup/rollup-darwin-arm64
Should it go in optionalDependencies
?
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies
That's what I plan to try next.
from rollup.
They are optional dependencies of Rollup, so if things do not work without manual installation, it might be some bugginess in npm.
from rollup.
Interesting... Thanks for your thoughts on it! I wonder if a minimal reproduction would be useful to demonstrate this.
FWIW this is the package.json
of the project where I'm experiencing this issue:
https://github.com/vizhub-core/vzcode/blob/main/package.json
I think rollup
here is a transitive dependency of vite
only. It's not a direct dependency.
I wonder if adding rollup
as a direct dependency may solve the issue... Something to try!
from rollup.
I wonder if this may be an issue for Vite actually, not Rollup.
https://github.com/vitejs/vite/blob/main/packages/vite/package.json#L163
This is the sort of PRs I get, with additions for ESBuild and Rollup OS-specific packages.
from rollup.
Related Issues (20)
- When I use format: "es" & sourcemap: false, bundle.write outputs an es module and a systemjs module with a sourcemap HOT 1
- What has been upgraded βterser: 5.27.3β HOT 1
- Exceptional performance of `namespace import` object values
- Cannot figure out a good workflow for a Shopify site...
- Setting `moduleSideEffects: false` removes side effectful getter inside a exported function since 4.9.2 HOT 2
- Rollup incorrectly merging ESM and CJS modules resulting in missing exports
- Treeshake dynamic import of modules
- RollupError: Unexpected token `.`. Expected * for generator, private key, identifier or async HOT 3
- [dir] placeholder for `output.assetFileNames` HOT 3
- I get loads of 'Circular dependency' errors when bundling 'npm link' symlinked modules HOT 1
- Circular dependency hangs watch option
- Vue 3 Script Setup syntax + style tag scoped = bug HOT 2
- map/filter/reduce on constant arrays with property access isn't treeshaken HOT 1
- Module execution order can be incorrect when having multiple entrypoints HOT 5
- Akims8686
- Rollup should allow building from source. HOT 7
- `preserveSymlinks: 'auto'` HOT 3
- useless import in multientry mode HOT 2
- RangeError: Maximum call stack size exceeded HOT 2
- Input glob error: You must supply options.input to rollup HOT 2
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 rollup.