Skip to content

Problems with build setup / MacOS? #138

@akiessling

Description

@akiessling

Hi,

i had trouble to get the build setup running on MacOS

First problem:

import fs from 'fs';
^^^^^^

SyntaxError: Cannot use import statement outside a module

I tried multiple multipe node versions, but in the end it was solvable by adjusting the build/entries.js and the build/site.js, see pull request

Second problem:
rspack and husky complained about missing bindings, so i had to add them for building / running the tests

    "@rspack/binding-darwin-arm64": "^0.6.5",
    "@swc/core-darwin-arm64": "^1.7.23",

I am not that deep into NodeJS and this is my first go with rspack. Maybe there is an automatic way to solve this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions