seagull-js / seagull-cli

The best way to start, develop and deploy Seagull Apps.
https://seagull-js.github.io/seagull-cli/
GNU Lesser General Public License v3.0
2 stars 0 forks source link

can't use external react components #28

Closed Anonyfox closed 6 years ago

Anonyfox commented 6 years ago

when in a simple component, using import * as DatePicker from 'react-bootstrap-date-picker' does kill the devserver rendering (looks like going into __tmp__ require issue.

Harper04 commented 6 years ago
sg dev
> starting dev server with live reload on port 3000...
Compile finished. Waiting for file changes
static server ready on localhost:3000
 Bundling took(ms): 3674
{ Error: Cannot find module 'create-react-class'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (toldya.site/node_modules/react-bootstrap-date-picker/lib/index.js:39:25)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
Harper04 commented 6 years ago

Seems like we are suppressing the original error, will address that.