dreipol / storybook-figma-addon Goto Github PK
View Code? Open in Web Editor NEWStorybook figma addon for private projects
License: MIT License
Storybook figma addon for private projects
License: MIT License
There's no /lib
folder in your package anymore, so the import in register.js
is failing
ModuleNotFoundError: Module not found: Error: Can't resolve './lib/register' in '/***/node_modules/@dreipol/storybook-figma-addon'
Does storybook-figma-addon allow Component Story Format (CSF)?
If so, could someone please provide a small code snippet? Thanks in advance.
There is just a list of suggestion that I have while using your library..
Suggestion
Thanks,
Derek
Getting an error (shown below)
Seems like the current version of this package: https://github.com/pocka/storybook-addon-designs
Has moved everything from /lib
to /esm
Updating panel.js
with an amended path seems to allow the build to complete.
WARN force closed preview build
ModuleNotFoundError: Module not found: Error: Can't resolve 'storybook-addon-designs/lib/register/components/Image' in '/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/lib'
at /Users/borgca/Repo/fox/node_modules/@storybook/core/node_modules/webpack/lib/Compilation.js:925:10
at /Users/borgca/Repo/fox/node_modules/@storybook/core/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /Users/borgca/Repo/fox/node_modules/@storybook/core/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /Users/borgca/Repo/fox/node_modules/@storybook/core/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /Users/borgca/Repo/fox/node_modules/neo-async/async.js:2830:7
at /Users/borgca/Repo/fox/node_modules/neo-async/async.js:6877:13
at /Users/borgca/Repo/fox/node_modules/@storybook/core/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/Users/borgca/Repo/fox/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/Users/borgca/Repo/fox/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/Users/borgca/Repo/fox/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at /Users/borgca/Repo/fox/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
resolve 'storybook-addon-designs/lib/register/components/Image' in '/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/lib'
Parsed request is a module
using description file: /Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/lib/node_modules doesn't exist or is not a directory
/Users/borgca/Repo/fox/node_modules/@dreipol/node_modules doesn't exist or is not a directory
/Users/borgca/Repo/fox/node_modules/node_modules doesn't exist or is not a directory
/Users/borgca/Repo/node_modules doesn't exist or is not a directory
/Users/borgca/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules
using description file: /Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
looking for modules in /Users/borgca/Repo/fox/node_modules
using description file: /Users/borgca/Repo/fox/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/borgca/Repo/fox/node_modules/storybook-addon-designs/package.json (relative path: ./lib/register/components/Image)
no extension
Field 'browser' doesn't contain a valid alias configuration
using description file: /Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/package.json (relative path: ./node_modules/storybook-addon-designs/lib/register/components/Image)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image.js doesn't exist
.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image.jsx doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image.jsx doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image.json doesn't exist
as directory
/Users/borgca/Repo/fox/node_modules/storybook-addon-designs/lib/register/components/Image doesn't exist
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image.json doesn't exist
as directory
/Users/borgca/Repo/fox/node_modules/@dreipol/storybook-figma-addon/node_modules/storybook-addon-designs/lib/register/components/Image doesn't exist
WARN FATAL broken build!, will close the process,
WARN Fix the error below and restart storybook.
error Command failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.