score:0
Importing files outside src is considered to be unusual. According to this.
score:2
If you want to do a symlink check the npm documentation. Here is about it https://docs.npmjs.com/cli/link
In short
- Go to dictionary with your package, in your case your scss file
cd ../scss
npm link
- Next go to some other location and:
npm link <your_package>
And you've got it!
Source: stackoverflow.com
Related Query
- add a symlink to module from project's node_modules
- import css file from node modules using css module in reactjs
- Editing code of react npm modules in node module folder
- Node modules issue: Only one default export allowed per module
- Import css files from node modules in Next JS?
- Invoking a node module from react component
- Using webpack to load CSS files from node modules
- How to import modules from a folder outside node modules in next js
- Import TypeScript modules from local module into React app
- How to add a dynamic Element to particular Html Node which is extracted from React ref?
- How to export a reducer from a react redux based node module
- Failed to compile node module when i try to export db from firebase
- create react app and SVG from node modules folder
- How to build a multi package node module with some optional modules
- How do I add a symlink from project's node_modules?
- Calling React/Webpack module code from Node
- How can I add modules in node install modules under node_modules to browser?
- How to merge different node modules and make different bundles from them?
- Getting DOM node from React child element
- ES2015 module syntax is preferred over custom TypeScript modules and namespaces @typescript-eslint/no-namespace
- Cannot find module 'react-dom/client' from 'node_modules/@testing-library/react/dist/pure.js'
- Cannot find module 'react/lib/ReactComponentTreeHook' from 'ReactDebugTool.js'
- How can I add a click handler to BODY from within a React component?
- Cannot find module 'ReactNative' from 'react-native.js' w/ Jest
- Clone and run react native projects from GitHub
- import a module from node_modules with babel but failed
- How to exclude CSS module files from jest test suites?
- npm install from github: Module not found: Can't resolve 'react-big-calendar'
- Exclude certain module from a chunk webpack 4
- Cannot find module '@babel/plugin-transform-runtime' from
More Query from same tag
- Next.js Image component error src missing though I am providing the src prop
- React scroll component to view inside overflow hidden element
- How to override material ui shadows in the theme
- How to render component with two different states in two different elements in React?
- Is it possible to call React from an html event handler
- Merge different Arrays and Calculate Average price Javascript
- Infinite loop when I try to update the state
- What does merge do in navigation.navigate (React Native)?
- material UI - How can I change the font size of the label in FormControlLabel
- Can I get MapBox layers, with React.js MapBox GL JS, that have been created in MapBox Studio?
- Inline style based off JSON value React
- How to style ToggleButon in material-ui
- ReactJs : Setstate is not updating the state
- How do I turn a JSX Element into a Function Component in React?
- Redux store does not create
- How to subtract time using moment
- Integrating Rickshaw JS and React JS
- What pattern is this in React?
- Problem with implementing the CSS breakpoint mixin using TypeScript
- In React, how do a pass a parameter from a child component up to a parent component?
- Creating a Grid Layout using React
- Equivalent of a yield take Redux Saga in Redux thunks
- ES6 Promises - Without using a deferred, how can I guarantee eventual access to an object instantiated during a React componentDidMount function?
- Override material-ui button styles with styled-components
- Failed to compile. Module not found: Can't resolve 'react-router-dom'
- return array of objects from props React JS
- Lint error when calling .then() inside a while loop
- React Router v5.1.2 Public & Protected Authenticated & Role Based routes
- React Webcam - Take Screenshot Issues
- Collect Data from the same component which is being rendered multiple times into an array to be sent to the server