You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard tokens aren't present in the build (linking to unpkg here. You can also find it on npm -> code -> /js/dashboard/lightMode/common.js (same with darkmode version, and any other target platforms)).
Expected Behaviour
The dashboard tokens should be present in the build.
Current Behaviour
The dashboard tokens are not present in the build.
Possible Solution
Not really a solution, but rather a bit of debugging I've done:
While the tokens are present in the source data set, they already disappear during the prebuild step. The generated tmp/tokens.json file still has the sections and structure for dashboard/lightMode and dashboard/darkMode, but all the values are missing.
I noticed that in the source, the dashboard sections reference variables from origin. It looks like these aren't resolved properly during the build, and silently go missing.
Steps to Reproduce
Option 1: inspect the existing published packages.
E.g. on npmjs.org in the code tab you can see that the variables for dashboard/lightMode and dashboard/darkMode are missing (for every target: css, js, android, etc.).
Option 2: build from scratch
Run the build script npm run build
Observe that none of the dashboard variables are present in the files in the dist folder.
Your environment
The text was updated successfully, but these errors were encountered:
Subject of the issue
The
dashboard
tokens aren't present in the build (linking tounpkg
here. You can also find it on npm -> code -> /js/dashboard/lightMode/common.js (same with darkmode version, and any other target platforms)).Expected Behaviour
The dashboard tokens should be present in the build.
Current Behaviour
The dashboard tokens are not present in the build.
Possible Solution
Not really a solution, but rather a bit of debugging I've done:
While the tokens are present in the source data set, they already disappear during the
prebuild
step. The generatedtmp/tokens.json
file still has the sections and structure fordashboard/lightMode
anddashboard/darkMode
, but all the values are missing.I noticed that in the source, the dashboard sections reference variables from origin. It looks like these aren't resolved properly during the build, and silently go missing.
Steps to Reproduce
Option 1: inspect the existing published packages.
E.g. on
npmjs.org
in thecode
tab you can see that the variables for dashboard/lightMode and dashboard/darkMode are missing (for every target: css, js, android, etc.).Option 2: build from scratch
npm run build
dist
folder.Your environment
The text was updated successfully, but these errors were encountered: