Comments (3)
As further research shows, this was a result of the dependencies in outline-template
's default
template being out of date with the latest releases. For some reason, even without a yarn.lock
file, a local installation (at the minimum) is caching older versions and not grabbing the latest versions.
Working on various updates that will attempt to fix this, and update title to be more relevant.
from outline.
Issues of interest found by @grshane:
from outline.
I was able to workaround this problem by adding the following to the src/.storybook/main.js
file in my local project. This was adapted from the docs for the Storybook Vite builder.
Added to beginning of file:
const { mergeConfig } = require('vite');
Added to module.exports
:
async viteFinal(config, { configType }) {
let jsx = 'react/jsx-runtime';
if (configType === 'DEVELOPMENT') {
jsx = 'react/jsx-dev-runtime';
}
return mergeConfig(config, {
optimizeDeps: {
include: [jsx],
},
});
},
@himerus would a PR that makes these changes to https://github.com/phase2/outline/blob/next/packages/documentation/outline-storybook/config/main.js be helpful?
from outline.
Related Issues (20)
- [Feature]: Upgrade to Storybook 6.4.21
- [Feature]: Updating Accordion sample markup in Storybook
- [Feature]: Move `_conditionalSlotTemplate` to a controller
- [Feature]: Make Tailwind CSS 100% Optional
- [Bug]: LinkedBlockController._handleClicks() causes extra click event
- [Feature]: Add color option to `outline-icon`
- [Bug]: Tailwind doesn't pick up new utility classes in Storybook stories
- Add `loading="lazy"` for `<img>` by default?
- [Bug]: Issues with slotted SVG images and FOUCE
- [Bug]: MobileController: Fix type error and consider renaming to BreakpointController HOT 1
- [Feature]: Sunset Mobile Controller in Favor of Screensize Controller HOT 1
- [Bug]: Can't override templates in components that inherit from OutlineModal
- [A11Y]: Accessibility update to Dropdown Button
- [Update]: Improve Documentation for Slot Controller
- [Bug]: outline-dropdown has hard-coded colors HOT 1
- Errors: light-dom
- [Bug]: Changes needed post init for successful storybook and build runs HOT 3
- [Bug]: CSS watch scripts failing in dev mode HOT 1
- [Feature]: Add script to copy image and font assets
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 outline.