-
Notifications
You must be signed in to change notification settings - Fork 13
Failed to compile #47
Comments
@abritopach can you paste your |
My
|
@abritopach I am not entirely sure what the problem is. I was searching around for answers and found this issue that is quite similar. Are you sure it's not your build process? If you have this code in a repo somewhere, happy to take a further look. |
@sighrobot I create new test react app. Steps:
But i get the same error. I uploaded the project to the following repository: https://github.com/abritopach/react-test-boundless Can you take a further look? Thank you very much. |
Ah it's because of the "module" entry point leading to ESM code that requires babel transpilation. Boundless uses some newer JS features like static class properties. @sighrobot the module entries should either be removed or updated to point at a version of the files with all the babel stuff transpiled except import/export syntax. |
@abritopach in the meantime, you can opt out of using the bleeding edge code with this webpack config in your project: {
resolve: {
mainFields: ["browser", "main"]
}
} |
Thanks @probablyup! |
Oh, it's working :) I have executed eject in the project: yarn eject With this command all the build dependencies, configs, and scripts are moved right into project. At this point I can customize webpack.config.dev.js and add the indicated configuration. Thank you very much @probablyup |
Hello! I have this error when I try to use ArrowKeyNavigation in my project:
My React Class:
`
import React, { Component } from 'react';
import { ArrowKeyNavigation } from 'boundless-arrow-key-navigation';
class TestPage extends Component {
state = {
items: [ 'lorem', 'ipsum', 'dolor' ],
}
}
export default TestPage;
`
Can you help me?
Thank you.
The text was updated successfully, but these errors were encountered: