Comments (1)
I think you can do this, but you would have to include the full path to the /src
folder - or where ever your source lives.
So you would use something like:
import CompThree from '@project/components/src/ui/CompThree';
You could remove the src directory and place your code up one level. I'm not sure what effect this pattern will have on tree-shaking, etc. You might run into something that does not work as expected.
If you have an example repo, I might be able to see if I can configure this for you.
from react-workspaces-playground.
Related Issues (20)
- how can i use baseUrl in components HOT 4
- Unknow problem with "path" after successfully compiling HOT 1
- Docker
- ERR! Error: Cannot find module 'react-dev-utils/getPublicUrlOrPath'
- Setting HTTPS=true breaks HMR HOT 1
- How to configure rollup without TypeScript?
- Slack Link is not working
- React Workspace Playground support for MinIO
- Best way for integrating Babel plugins/presets?
- About using create-react-native-app in lerna using workspaces
- package homepage not working
- upgrades to Typescript 4.0.1, Storybook 6.0.21, Yarn 2.2? HOT 1
- Error adding styled-components as a dependency HOT 2
- What's the purpose of this react-workspaces-playground? HOT 1
- Creating a New CRA App doesn't work
- Upgrade to CRA 4 + TS 4 HOT 2
- Does this support Yarn 2? HOT 1
- Storybook help
- Webpack loader issue with Storybook 6 global decorator
- Upgrade React version
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 react-workspaces-playground.