-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module '../node_modules/refractor/lang/markup.js' #3176
Comments
../node_modules/refractor/lang/markup.js
../node_modules/refractor/lang/markup.js
This works for me: var refractor = require('refractor')
console.log(refractor.highlight('*Emphasis*', 'markdown')) Please post an example of your code that causes this error. |
I'm seeing this same error. I'm trying to use the react-syntax-highlighter package. I do see markup.js in node_modules.
|
Any suggestions for how best to address this? I'm having an identical issue, and it is currently preventing me from swapping off of Webpack and moving 100% to Parcel |
I'm pretty sure the reason here is that |
@mischnic thanks for sharing. I've been waiting to try and update to Parcel2, since it appears it is still in Alpha phase |
Is the plan for Parcel v1 to not support this? I am not ready to upgrade my app to Parcel v2 but would like the ability to use Is there at least a known work-around for this? |
I met this issue and use a workaround below. async function startApplication(){
await import('refractor');
const App = await import('component which import react-syntax-highlighter');
ReactDOM.render(<App />, document.getElementById('root'));
}
startApplication(); |
馃悰 bug report
Parcel doesn't seem to able compile package
refractor
.I get the error
Uncaught (in promise) Error: Cannot find module '../node_modules/refractor/lang/markup.js'
even though the filemarkup.js
is in place.馃帥 Configuration (.babelrc, package.json, cli command)
馃 Expected Behavior
Shouldn't throw any errors since the package is fine
馃槸 Current Behavior
馃拋 Possible Solution
馃敠 Context
馃捇 Code Sample
馃實 Your Environment
The text was updated successfully, but these errors were encountered: