Skip to content

Apple Silicon support (replace node-sass; enable node 18; upgrade storybook)#97

Draft
ben-polinsky wants to merge 2 commits intomainfrom
node-18-storybook-7
Draft

Apple Silicon support (replace node-sass; enable node 18; upgrade storybook)#97
ben-polinsky wants to merge 2 commits intomainfrom
node-18-storybook-7

Conversation

@ben-polinsky
Copy link
Collaborator

Path toward M1 Mac support:

Replace node-sass with sass

node-sass is deprecated and does not have support for apple silicon.

Storybook 6 also had dependencies which caused builds to fail on apple silicon. Thus node 18 and the upgrade Storybook 7.

@ben-polinsky
Copy link
Collaborator Author

ben-polinsky commented Sep 29, 2023

@raplemie We'll need to test this out on Windows - I actually have no idea what state the storybook was in as I couldn't run it prior to these upgrades.

(I can do it in a VM, no worries)

import { BrowserAuthorizationClient } from "@itwin/browser-authorization";

BrowserAuthorizationCallbackHandler.handleSigninCallback(window.location.toString()).catch(console.log);
BrowserAuthorizationClient.handleSignInCallback().catch(console.log);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was talking with @raplemie and he was wondering if we need the addon or if we can get away without it and put the auth directly in the app. @ben-polinsky thoughts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to get back to this. Yeah I could look into that when I have a chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants